/* ==========================================================================
   ONYX Fodrászat — Kezdőlap (index.html): hero + hajanimáció + sticky blokkok
   Ehhez betöltve: base.css
   ========================================================================== */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: var(--black);
  color: var(--white);
  padding: 140px 24px 100px;
  overflow: hidden;
  isolation: isolate;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 25%, rgba(255, 255, 255, 0.07), transparent 45%),
    radial-gradient(circle at 82% 75%, rgba(255, 255, 255, 0.05), transparent 50%);
  pointer-events: none;
}

.hero-grain {
  position: absolute;
  inset: 0;
  opacity: 0.05;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.hero-eyebrow {
  color: var(--gray-300);
  margin-bottom: 26px;
  opacity: 0;
  animation: fadeUp 0.9s var(--ease-out) 0.2s forwards;
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 0.98;
  font-size: clamp(3.2rem, 10vw, 8rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.05em;
}

.hero-brand {
  letter-spacing: 0.02em;
  opacity: 0;
  animation: fadeUp 0.9s var(--ease-out) 0.35s forwards;
}

.hero-word {
  position: relative;
  display: inline-block;
  font-style: italic;
  font-weight: 400;
  color: var(--white);
  opacity: 0;
  animation: fadeUp 0.9s var(--ease-out) 0.5s forwards;
}

.hero-word-text {
  position: relative;
  z-index: 1;
}

/* ==========================================================================
   Betű-ikonok: az "f" egy hajszárító, az "á" egy olló — inline a szóban
   ========================================================================== */

.letter-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 0.82em;
  height: 0.9em;
  vertical-align: -0.08em;
  color: var(--white);
}

.letter-icon .icon-svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

/* --- hajszárító ("f") --- */

.letter-icon--dryer {
  width: 0.86em;
  animation: dryerWiggle 3.2s ease-in-out infinite;
  transform-origin: 22% 88%;
}

.letter-icon--dryer .icon-svg path,
.letter-icon--dryer .icon-svg rect {
  fill: currentColor;
}
.letter-icon--dryer .icon-svg .dryer-btn {
  fill: var(--black);
}
.letter-icon--dryer .icon-svg .dryer-air path {
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  opacity: 0;
  animation: dryerPuff 1.8s ease-in-out infinite;
}
.letter-icon--dryer .icon-svg .dryer-air path:nth-child(1) { animation-delay: 0s; }
.letter-icon--dryer .icon-svg .dryer-air path:nth-child(2) { animation-delay: 0.3s; }
.letter-icon--dryer .icon-svg .dryer-air path:nth-child(3) { animation-delay: 0.6s; }

@keyframes dryerWiggle {
  0%, 100% { transform: rotate(0deg); }
  50% { transform: rotate(5deg); }
}
@keyframes dryerPuff {
  0% { opacity: 0; transform: translateX(0); }
  35% { opacity: 0.9; }
  100% { opacity: 0; transform: translateX(7px); }
}

/* --- olló ("á") --- */

.letter-icon--scissors {
  width: 0.66em;
  height: 0.92em;
  animation: scissorsSnip 3.2s ease-in-out infinite;
  transform-origin: 50% 62%;
}
.letter-icon--scissors .icon-svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 2.1;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.letter-icon--scissors .icon-svg .pivot {
  fill: currentColor;
  stroke: none;
}

@keyframes scissorsSnip {
  0%, 30%, 100% { transform: rotate(0deg); }
  15% { transform: rotate(-6deg); }
}

.hero-sub {
  margin-top: 30px;
  max-width: 540px;
  color: var(--gray-300);
  font-size: 1.08rem;
  opacity: 0;
  animation: fadeUp 0.9s var(--ease-out) 0.7s forwards;
}

.hero-cta {
  margin-top: 44px;
  display: flex;
  gap: 18px;
  opacity: 0;
  animation: fadeUp 0.9s var(--ease-out) 0.85s forwards;
}

.hero-scroll {
  margin-top: 56px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: var(--gray-500);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0;
  animation: fadeUp 0.9s var(--ease-out) 1.1s forwards;
}

.hero-scroll-line {
  width: 1px;
  height: 46px;
  background: linear-gradient(var(--gray-500), transparent);
  animation: scrollPulse 1.8s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { transform: scaleY(1); opacity: 0.6; }
  50% { transform: scaleY(0.6); opacity: 1; }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   Sticky szekció-verem
   ========================================================================== */

.sticky-section {
  position: sticky;
  top: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 0;
}

.flow-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 0;
}

.sticky-dark {
  background: var(--near-black);
  color: var(--white);
}

.sticky-light {
  background: var(--white);
  color: var(--black);
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 64px;
  flex-wrap: wrap;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4.4vw, 3.4rem);
  font-weight: 600;
  line-height: 1.05;
  margin-top: 10px;
}

.section-title em {
  font-style: italic;
  font-weight: 400;
  opacity: 0.55;
}

/* --- Rólunk --- */

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 80px;
  align-items: center;
  width: 100%;
}

.about-media {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  aspect-ratio: 4 / 5;
}

.about-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.08) contrast(1.02);
}

.about-media .frame-tag {
  position: absolute;
  bottom: 22px;
  left: 22px;
  background: rgba(10, 10, 10, 0.55);
  backdrop-filter: blur(6px);
  color: var(--white);
  padding: 10px 18px;
  border-radius: 100px;
  font-size: 0.78rem;
  letter-spacing: 0.05em;
}

.about-text p {
  color: var(--gray-300);
  font-size: 1.05rem;
  max-width: 46ch;
  margin-bottom: 20px;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: 40px;
  margin-top: 48px;
}

.about-stats .num {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 700;
  display: block;
}

.about-stats .lbl {
  color: var(--gray-500);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* --- Szolgáltatások --- */

.services-grid {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--gray-100);
  border: 1px solid var(--gray-100);
}

.service-card {
  background: var(--white);
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: background 0.35s ease;
}

.service-card:hover {
  background: var(--black);
  color: var(--white);
}

.service-card:hover .service-price {
  color: var(--white);
}

.service-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.service-name {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
}

.service-price {
  font-weight: 700;
  color: var(--gray-700);
  white-space: nowrap;
}

.service-desc {
  color: var(--gray-500);
  font-size: 0.92rem;
  max-width: 40ch;
}
.service-card:hover .service-desc {
  color: var(--gray-300);
}

.service-duration {
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gray-500);
  margin-top: auto;
}
.service-card:hover .service-duration {
  color: var(--gray-300);
}

/* --- Galéria --- */

.gallery-grid {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: 130px;
  gap: 14px;
}

.gallery-item {
  overflow: hidden;
  border-radius: 14px;
  position: relative;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease-out), filter 0.7s ease;
  filter: saturate(1.15);
}
.gallery-item:hover img {
  transform: scale(1.08);
}

.gallery-item.g1 { grid-column: span 3; grid-row: span 3; }
.gallery-item.g2 { grid-column: span 3; grid-row: span 2; }
.gallery-item.g3 { grid-column: span 3; grid-row: span 2; }
.gallery-item.g4 { grid-column: span 2; grid-row: span 2; }
.gallery-item.g5 { grid-column: span 4; grid-row: span 2; }

/* --- Nyitvatartás / elérhetőség --- */

.info-grid {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
}

.hours-table {
  width: 100%;
  border-collapse: collapse;
}
.hours-table tr {
  border-bottom: 1px solid var(--gray-100);
}
.hours-table td {
  padding: 16px 4px;
  font-size: 1rem;
}
.hours-table td:first-child {
  color: var(--gray-500);
  font-weight: 500;
}
.hours-table td:last-child {
  text-align: right;
  font-weight: 600;
}
.hours-table tr.closed td:last-child {
  color: var(--gray-500);
  font-weight: 400;
}
.hours-table tr.today {
  font-weight: 700;
}
.hours-table tr.today td:first-child::before {
  content: "● ";
  color: var(--black);
  font-size: 0.6rem;
}

.contact-list {
  display: flex;
  flex-direction: column;
  gap: 26px;
  margin-top: 6px;
}

.contact-item .lbl {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gray-500);
  margin-bottom: 6px;
  display: block;
}

.contact-item .val {
  font-family: var(--font-display);
  font-size: 1.5rem;
}

.info-cta {
  margin-top: 20px;
}

/* ==========================================================================
   Reszponzív
   ========================================================================== */

@media (max-width: 980px) {
  .about-grid,
  .info-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .services-grid {
    grid-template-columns: 1fr;
  }
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 160px;
  }
  .gallery-item.g1,
  .gallery-item.g2,
  .gallery-item.g3,
  .gallery-item.g4,
  .gallery-item.g5 {
    grid-column: span 1;
    grid-row: span 2;
  }
}

@media (max-width: 860px) {
  .sticky-section,
  .flow-section {
    padding: 90px 0;
  }
}

@media (max-width: 560px) {
  .hero-cta {
    flex-direction: column;
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .letter-icon--dryer,
  .letter-icon--scissors,
  .letter-icon--dryer .icon-svg .dryer-air path {
    animation: none !important;
  }
}

.hero-word.hero-word-plain {
  font-style: normal;
  font-weight: 700;
  letter-spacing: -0.045em;
}
