/* ============================================================
   Nelli Nails – Műköröm Szalon
   Fő szín: #f05a75
   ============================================================ */

:root {
  --pink: #f05a75;
  --pink-dark: #d43d59;
  --pink-deep: #b32c46;
  --pink-light: #fce8ec;
  --pink-soft: #fdf3f5;
  --ink: #2b2028;
  --ink-soft: #6b5a63;
  --white: #ffffff;
  --shadow: 0 10px 30px rgba(240, 90, 117, 0.18);
  --radius: 18px;
  --font-head: 'Playfair Display', Georgia, serif;
  --font-body: 'Jost', 'Segoe UI', sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

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

a { color: var(--pink); text-decoration: none; transition: color .2s; }
a:hover { color: var(--pink-dark); }

::selection { background: var(--pink); color: var(--white); }

/* horgonyzott szekciók ne csússzanak a fix fejléc alá */
section[id] { scroll-margin-top: 90px; }

.container {
  width: min(1160px, 92%);
  margin: 0 auto;
}

/* ---------- SVG ikonok ---------- */
svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* a szimbólum-definíciós sprite rejtve marad (CSP miatt nem inline stílussal) */
.svg-defs { display: none; }

.btn .ico {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
}

/* ---------- Gombok ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: .02em;
  transition: transform .2s, box-shadow .2s, background .2s, color .2s;
  cursor: pointer;
  border: 2px solid transparent;
  font-family: var(--font-body);
}
.btn:hover { transform: translateY(-2px); }
.btn:focus-visible {
  outline: 3px solid var(--pink-deep);
  outline-offset: 2px;
}

.btn-pink {
  background: var(--pink);
  color: var(--white);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}
.btn-pink:hover { background: var(--pink-dark); color: var(--white); }

/* fénycsík átfutás hoverre */
.btn-pink::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0; left: -60%;
  width: 50%;
  background: linear-gradient(105deg, transparent, rgba(255, 255, 255, .35), transparent);
  transform: skewX(-20deg);
  transition: transform .55s ease;
  pointer-events: none;
}
.btn-pink:hover::after { transform: skewX(-20deg) translateX(340%); }

/* ikon billegés hoverre */
@keyframes wiggle {
  0%, 100% { transform: rotate(0); }
  30% { transform: rotate(-12deg); }
  70% { transform: rotate(9deg); }
}
.btn:hover .ico { animation: wiggle .5s ease; }

.btn-white {
  background: var(--white);
  color: var(--pink-dark);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .15);
}
.btn-white:hover { color: var(--pink-deep); }

.btn-outline {
  border-color: rgba(255, 255, 255, .8);
  color: var(--white);
}
.btn-outline:hover { background: rgba(255, 255, 255, .15); color: var(--white); }

/* ---------- Fejléc ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(10px);
  transition: box-shadow .3s;
}
.site-header.scrolled { box-shadow: 0 4px 20px rgba(43, 32, 40, .1); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
}

.brand-logo { height: 58px; width: auto; }

.main-nav {
  display: flex;
  align-items: center;
  gap: 26px;
}
.main-nav a {
  color: var(--ink);
  font-weight: 500;
  position: relative;
}
.main-nav a:not(.btn)::after {
  content: '';
  position: absolute;
  left: 0; bottom: -4px;
  width: 0; height: 2px;
  background: var(--pink);
  transition: width .25s;
}
.main-nav a:not(.btn):hover { color: var(--pink); }
.main-nav a:not(.btn):hover::after { width: 100%; }

/* fontos: a nav linkszíne ne írja felül a gomb fehér feliratát */
.main-nav a.btn-pink { color: var(--white); }
.main-nav a.btn-pink:hover { color: var(--white); }

.nav-cta { padding: 10px 22px; font-size: .95rem; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  width: 26px; height: 3px;
  background: var(--pink);
  border-radius: 2px;
  transition: transform .3s, opacity .3s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: linear-gradient(135deg, #f8748c 0%, var(--pink) 45%, var(--pink-dark) 100%);
  color: var(--white);
  padding: 165px 0 120px;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -120px; right: -120px;
  width: 420px; height: 420px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .08);
}
.hero::after {
  content: '';
  position: absolute;
  bottom: 40px; left: -100px;
  width: 300px; height: 300px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .06);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 50px;
  align-items: center;
  position: relative;
  z-index: 2;
}

/* --- Hero belépő animációk (csak transform/opacity, GPU-barát) --- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(26px); }
  to { opacity: 1; transform: none; }
}
.hero-kicker { animation: fadeUp .7s cubic-bezier(.22, .61, .36, 1) .05s both; }
.hero h1 { animation: fadeUp .7s cubic-bezier(.22, .61, .36, 1) .18s both; }
.hero-lead { animation: fadeUp .7s cubic-bezier(.22, .61, .36, 1) .32s both; }
.hero-actions { animation: fadeUp .7s cubic-bezier(.22, .61, .36, 1) .46s both; }
.hero-images { animation: fadeUp .9s cubic-bezier(.22, .61, .36, 1) .3s both; }

/* --- Csillogó díszek --- */
.hero-sparkles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}
@keyframes twinkle {
  0%, 100% { opacity: 0; transform: scale(.5) rotate(0deg); }
  50% { opacity: .9; transform: scale(1) rotate(18deg); }
}
.sparkle {
  position: absolute;
  color: var(--white);
  fill: currentColor;
  stroke: none;
  opacity: 0;
  animation: twinkle 4.2s ease-in-out infinite;
}
.sp1 { top: 20%; left: 45%; width: 24px; height: 24px; }
.sp2 { top: 13%; left: 6%; width: 15px; height: 15px; animation-delay: 1.2s; }
.sp3 { bottom: 26%; left: 39%; width: 30px; height: 30px; animation-delay: 2.1s; }
.sp4 { top: 40%; right: 3%; width: 17px; height: 17px; animation-delay: 3s; }

.hero-kicker {
  text-transform: uppercase;
  letter-spacing: .25em;
  font-size: .85rem;
  font-weight: 600;
  opacity: .9;
  margin-bottom: 14px;
}

.hero h1 {
  font-family: var(--font-head);
  font-size: clamp(2.3rem, 5vw, 3.6rem);
  line-height: 1.15;
  margin-bottom: 20px;
}
.hero h1 em { font-style: italic; }

.hero-lead {
  font-size: 1.15rem;
  font-weight: 300;
  max-width: 480px;
  margin-bottom: 32px;
  opacity: .95;
}

.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.hero-images {
  position: relative;
  min-height: 380px;
}
.hero-img {
  position: absolute;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0, 0, 0, .3);
  border: 5px solid var(--white);
}
.hero-img img { width: 100%; height: 100%; object-fit: cover; }
/* finom lebegés – a forgatás a keyframe-ekbe építve */
@keyframes floatMain {
  from { transform: rotate(2deg) translateY(0); }
  to { transform: rotate(2deg) translateY(-10px); }
}
@keyframes floatSide {
  from { transform: rotate(-4deg) translateY(0); }
  to { transform: rotate(-4deg) translateY(-8px); }
}
.hero-img-main {
  width: 78%;
  aspect-ratio: 5 / 4;
  top: 0; right: 0;
  transform: rotate(2deg);
  animation: floatMain 5.5s ease-in-out 1.3s infinite alternate;
}
.hero-img-side {
  width: 48%;
  aspect-ratio: 4 / 5;
  bottom: -20px; left: 0;
  transform: rotate(-4deg);
  animation: floatSide 6.5s ease-in-out 1.6s infinite alternate;
}

.hero-wave {
  position: absolute;
  bottom: -1px; left: 0; right: 0;
  z-index: 1;
  line-height: 0;
}
.hero-wave svg { width: 100%; height: 90px; stroke: none; }

/* ---------- Infó sáv ---------- */
.info-strip { padding: 40px 0 20px; }

.info-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.info-card {
  background: var(--pink-soft);
  border: 1px solid var(--pink-light);
  border-radius: var(--radius);
  padding: 26px 20px;
  text-align: center;
  transition: transform .25s, box-shadow .25s;
}
.info-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }

.info-icon {
  width: 56px; height: 56px;
  margin: 0 auto 12px;
  border-radius: 50%;
  background: var(--white);
  border: 1px solid var(--pink-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--pink);
}
.info-icon svg { width: 26px; height: 26px; }

.info-card h3 {
  font-size: .85rem;
  text-transform: uppercase;
  letter-spacing: .15em;
  color: var(--pink-dark);
  margin-bottom: 6px;
}
.info-card p { color: var(--ink-soft); font-size: .98rem; }

/* ---------- Szekció fejlécek ---------- */
.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 50px;
}

.section-kicker {
  text-transform: uppercase;
  letter-spacing: .25em;
  font-size: .8rem;
  font-weight: 600;
  color: var(--pink);
  margin-bottom: 10px;
}

.section-head h2, .about-text h2 {
  font-family: var(--font-head);
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  margin-bottom: 14px;
}

.section-head h2::after, .about-text h2::after {
  content: '';
  display: block;
  width: 60px; height: 3px;
  background: var(--pink);
  border-radius: 2px;
  margin: 16px auto 0;
}
.about-text h2::after { margin-left: 0; }

.section-lead { color: var(--ink-soft); font-size: 1.05rem; }

/* ---------- Szolgáltatások ---------- */
.services { padding: 80px 0; }

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.service-card {
  background: var(--white);
  border: 1px solid var(--pink-light);
  border-radius: var(--radius);
  padding: 34px 28px;
  text-align: center;
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: var(--pink);
}

.service-icon {
  width: 68px; height: 68px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: var(--pink-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--pink-dark);
  transition: background .25s, color .25s;
}
.service-icon svg { width: 30px; height: 30px; }
.service-card:hover .service-icon {
  background: var(--pink);
  color: var(--white);
}

.service-card h3 {
  font-family: var(--font-head);
  font-size: 1.3rem;
  margin-bottom: 10px;
  color: var(--pink-deep);
}
.service-card p { color: var(--ink-soft); font-size: .97rem; }

.services-note {
  text-align: center;
  margin: 40px auto 0;
  max-width: 560px;
  padding: 18px 28px;
  background: var(--pink-soft);
  border: 1px solid var(--pink-light);
  border-radius: 999px;
  font-size: 1.02rem;
  color: var(--ink-soft);
}

/* ---------- Galéria ---------- */
.gallery {
  padding: 80px 0;
  background: var(--pink-soft);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.gallery-item {
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  position: relative;
  box-shadow: 0 4px 14px rgba(43, 32, 40, .08);
}
.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .4s;
}
.gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round'><circle cx='11' cy='11' r='7'/><path d='M21 21l-4.3-4.3M8 11h6M11 8v6'/></svg>")
    center / 34px no-repeat,
    rgba(240, 90, 117, .35);
  opacity: 0;
  transition: opacity .3s;
}
.gallery-item:hover::after { opacity: 1; }
.gallery-item:hover img { transform: scale(1.07); }

/* alapból csak az első 12 látszik */
.gallery-grid .gallery-item.hidden { display: none; }

.gallery-more { text-align: center; margin-top: 36px; }
.gallery-more p { margin-top: 16px; color: var(--ink-soft); }

/* ---------- Rólam ---------- */
.about { padding: 90px 0; }

.about-inner {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 60px;
  align-items: center;
}

.about-img {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 5px solid var(--pink-light);
  transform: rotate(-2deg);
}
.about-img img { width: 100%; height: auto; }

.about-text p { margin-bottom: 16px; color: var(--ink-soft); font-size: 1.03rem; }
.about-text .btn { margin-top: 10px; }

/* ---------- Kapcsolat ---------- */
.contact {
  padding: 80px 0;
  background: linear-gradient(180deg, var(--white) 0%, var(--pink-soft) 100%);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 40px;
  align-items: stretch;
}

.contact-details {
  background: var(--white);
  border: 1px solid var(--pink-light);
  border-radius: var(--radius);
  padding: 36px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact-row {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.contact-icon {
  width: 46px; height: 46px;
  flex: 0 0 46px;
  border-radius: 50%;
  background: var(--pink-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--pink-dark);
}
.contact-icon svg { width: 21px; height: 21px; }

.contact-row h3 {
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .15em;
  color: var(--pink-dark);
  margin-bottom: 2px;
}
.contact-row p { color: var(--ink-soft); }

.contact-map {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  min-height: 380px;
}
.contact-map iframe { width: 100%; height: 100%; min-height: 380px; border: 0; }

/* ---------- Időpontfoglalás oldal ---------- */
.booking {
  padding: 150px 0 80px;
  background: linear-gradient(180deg, var(--pink-soft) 0%, var(--white) 40%);
  min-height: 70vh;
}

.booking-title {
  font-family: var(--font-head);
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  margin-bottom: 14px;
}
.booking-title::after {
  content: '';
  display: block;
  width: 60px; height: 3px;
  background: var(--pink);
  border-radius: 2px;
  margin: 16px auto 0;
}

.booking-frame-wrap {
  background: var(--white);
  border: 1px solid var(--pink-light);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 14px;
  max-width: 920px;
  margin: 0 auto;
}

#foglalda-frame {
  display: block;
  border: 0;
  width: 100%;
  max-width: 100%;
  border-radius: 12px;
}

.booking-note {
  text-align: center;
  margin-top: 28px;
  color: var(--ink-soft);
  font-size: 1.05rem;
}

/* ---------- Lábléc ---------- */
.site-footer {
  background: var(--ink);
  color: rgba(255, 255, 255, .8);
  padding: 50px 0 30px;
  text-align: center;
}

.footer-logo {
  height: 56px;
  margin: 0 auto 14px;
  filter: invert(1);
  opacity: .95;
}

.footer-tagline { margin-bottom: 18px; font-weight: 300; }

.footer-links {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}
.footer-links a { color: #f8a3b2; }
.footer-links a:hover { color: var(--white); }
.footer-links span { opacity: .4; }

.footer-copy { font-size: .85rem; opacity: .55; }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(20, 12, 16, .92);
  display: none;
  align-items: center;
  justify-content: center;
}
.lightbox.open { display: flex; }

.lightbox img {
  max-width: 88vw;
  max-height: 86vh;
  border-radius: 10px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .5);
}

.lb-close, .lb-prev, .lb-next {
  position: absolute;
  background: rgba(255, 255, 255, .12);
  color: var(--white);
  border: none;
  cursor: pointer;
  border-radius: 50%;
  width: 52px; height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s;
}
.lb-close svg, .lb-prev svg, .lb-next svg { width: 24px; height: 24px; stroke-width: 2.2; }
.lb-close:hover, .lb-prev:hover, .lb-next:hover { background: var(--pink); }

.lb-close { top: 22px; right: 22px; }
.lb-prev { left: 22px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 22px; top: 50%; transform: translateY(-50%); }

.lb-count {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--white);
  background: rgba(255, 255, 255, .12);
  padding: 5px 16px;
  border-radius: 999px;
  font-size: .9rem;
  letter-spacing: .08em;
}

/* ---------- Vissza a tetejére ---------- */
.to-top {
  position: fixed;
  bottom: 24px; right: 24px;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--pink);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s, transform .3s;
  z-index: 90;
}
.to-top svg { width: 22px; height: 22px; stroke-width: 2.2; }
.to-top.visible { opacity: 1; pointer-events: auto; }
.to-top:hover { color: var(--white); transform: translateY(-3px); }

/* ---------- Megjelenési animáció ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.in {
  opacity: 1;
  transform: none;
}

/* szekciócím aláhúzása csak megjelenéskor nő ki */
.reveal h2::after { width: 0; transition: width .55s ease .35s; }
.reveal.in h2::after { width: 60px; }

/* lépcsőzetes megjelenés a rácsokban */
.info-grid .reveal:nth-child(2) { transition-delay: .1s; }
.info-grid .reveal:nth-child(3) { transition-delay: .2s; }
.info-grid .reveal:nth-child(4) { transition-delay: .3s; }
.services-grid .reveal:nth-child(3n+2) { transition-delay: .1s; }
.services-grid .reveal:nth-child(3n) { transition-delay: .2s; }
.gallery-grid .reveal:nth-child(4n+2) { transition-delay: .07s; }
.gallery-grid .reveal:nth-child(4n+3) { transition-delay: .14s; }
.gallery-grid .reveal:nth-child(4n) { transition-delay: .21s; }

/* infókártya ikon finoman megnő hoverre */
.info-icon { transition: transform .25s ease; }
.info-card:hover .info-icon { transform: scale(1.1); }

/* ---------- Csökkentett mozgás (akadálymentesség + teljesítmény) ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    transition-delay: 0s !important;
  }
  .reveal { opacity: 1; transform: none; }
  .reveal h2::after { width: 60px; }
  .sparkle { display: none; }
}

/* ---------- Reszponzív ---------- */
@media (max-width: 1000px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
  .info-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 840px) {
  .hero { padding: 140px 0 110px; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-images { min-height: 320px; max-width: 440px; }
  .about-inner { grid-template-columns: 1fr; gap: 40px; }
  .about-img { max-width: 380px; margin: 0 auto; }
  .contact-grid { grid-template-columns: 1fr; }

  .brand-logo { height: 48px; }
  section[id] { scroll-margin-top: 76px; }
  .sp1, .sp3 { display: none; }

  .nav-toggle { display: flex; }
  .main-nav {
    position: fixed;
    top: 68px; left: 0; right: 0;
    background: var(--white);
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 30px 0;
    box-shadow: 0 15px 30px rgba(43, 32, 40, .12);
    transform: translateY(-130%);
    transition: transform .35s ease, visibility .35s;
    visibility: hidden;
    z-index: 99;
  }
  .main-nav.open { visibility: visible; }
  .main-nav.open { transform: translateY(0); }
}

@media (max-width: 560px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .services-grid { grid-template-columns: 1fr; }
  .info-grid { grid-template-columns: 1fr; }
  .hero-actions .btn { width: 100%; }
  .services-note { border-radius: var(--radius); }
  .lb-prev { left: 8px; }
  .lb-next { right: 8px; }
}
