/* ═══════════════════════════════════════════════════════
   Studio TM – main.css
   Bootstrap 5.3 felülírások + alap stílusok
   ═══════════════════════════════════════════════════════ */

/* ── CSS VÁLTOZÓK ────────────────────────────────────── */
:root {
  --stm-gold:       #FFFF00;
  --stm-gold-l:     #FFFF66;
  --stm-dark:       #000000;
  --stm-dark-2:     #0A0A0A;
  --stm-dark-3:     #111111;
  --stm-dark-4:     #1A1A1A;
  --stm-text:       #f0ece4;
  --stm-text-muted: #7a7268;
  --stm-text-dim:   #5a5650;
  --stm-text-dim2:  #3a3630;
  --stm-border:     rgba(255,255,255,0.05);
  --stm-font-title: 'Bebas Neue', sans-serif;
  --stm-font-body:  'DM Sans', sans-serif;
  --stm-radius:     2px;
}

/* ── ALAP ────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  background: var(--stm-dark);
  color: var(--stm-text);
  font-family: var(--stm-font-body);
  font-size: 1rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6,
.stm-logo, .stm-hero-h1,
.stm-section-title, .stm-team-name {
  font-family: var(--stm-font-title);
  letter-spacing: 0.04em;
}

img { max-width: 100%; height: auto; }
a { text-decoration: none; }

/* ── NAVBAR ──────────────────────────────────────────── */
.stm-nav {
  background: rgba(0,0,0,0.93);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255,255,0,0.1);
  padding: 0;
  min-height: 64px;
}

.stm-nav .container-xl {
  min-height: 64px;
  display: flex;
  align-items: center;
}

.stm-logo {
  font-family: var(--stm-font-title);
  font-size: 1.6rem;
  letter-spacing: 0.1em;
  color: var(--stm-gold) !important;
  white-space: nowrap;
}

.stm-nav .nav-link {
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #a09a8e !important;
  transition: color 0.2s;
  padding: 0.4rem 0.6rem;
}
.stm-nav .nav-link:hover,
.stm-nav .nav-link.active {
  color: var(--stm-gold) !important;
}

/* Lang gombok */
.stm-lang-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px 5px;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 3px;
  background: none;
  transition: border-color 0.2s;
  line-height: 1;
}
.stm-lang-btn:hover { border-color: rgba(255,255,0,0.4); }
.stm-lang-btn.active {
  border-color: var(--stm-gold);
  background: rgba(255,255,0,0.07);
}

/* ── GOMBOK ──────────────────────────────────────────── */
.stm-btn-primary {
  background: var(--stm-gold);
  color: var(--stm-dark);
  font-family: var(--stm-font-body);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: var(--stm-radius);
  border: none;
  padding: 0.75rem 1.75rem;
  transition: background 0.2s;
}
.stm-btn-primary:hover, .stm-btn-primary:focus {
  background: var(--stm-gold-l);
  color: var(--stm-dark);
}

.stm-btn-outline {
  background: transparent;
  color: var(--stm-gold);
  font-family: var(--stm-font-body);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid rgba(255,255,0,0.4);
  border-radius: var(--stm-radius);
  padding: 0.75rem 1.75rem;
  transition: all 0.2s;
}
.stm-btn-outline:hover, .stm-btn-outline:focus {
  background: rgba(255,255,0,0.06);
  border-color: var(--stm-gold);
  color: var(--stm-gold);
}

/* ── SZEKCIÓ KÖZÖS ───────────────────────────────────── */
.stm-section {
  padding: 5rem 0;
}

.stm-section-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--stm-gold);
  margin-bottom: 0.65rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.stm-section-label::after {
  content: '';
  flex: 1;
  max-width: 36px;
  height: 1px;
  background: var(--stm-gold);
  opacity: 0.6;
}

.stm-section-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  line-height: 1.1;
  color: var(--stm-text);
  margin-bottom: 0.9rem;
}

.stm-section-sub {
  font-size: 0.95rem;
  color: var(--stm-text-dim);
  max-width: 54ch;
  line-height: 1.7;
}

/* ── HERO ────────────────────────────────────────────── */
.stm-hero {
  min-height: 100svh;
  padding-top: 64px;
  position: relative;
  overflow: hidden;
}
/* Ha nincs slider (üres heroImages), kisebb magasság */
.stm-hero--no-slider {
  min-height: auto;
  padding-bottom: 3rem;
}

.stm-hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #000 0%, #0a0a0a 45%, #0d0d00 100%);
}

.stm-hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,0,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,0,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
}

.stm-hero-accent {
  position: absolute;
  right: -10%;
  top: 10%;
  width: 55%;
  height: 80%;
  background: linear-gradient(135deg, rgba(255,255,0,0.05) 0%, transparent 60%);
  border-left: 1px solid rgba(255,255,0,0.1);
  transform: skewX(-8deg);
}

.stm-hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--stm-gold);
  margin-bottom: 1.25rem;
}
.stm-hero-tag::before {
  content: '';
  width: 24px;
  height: 1px;
  background: var(--stm-gold);
}

.stm-hero-h1 {
  font-size: clamp(3rem, 7vw, 5.5rem);
  line-height: 0.95;
  color: var(--stm-text);
  margin-bottom: 1.25rem;
}
.stm-hero-h1 em {
  color: var(--stm-gold);
  font-style: normal;
}

.stm-hero-desc {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--stm-text-muted);
  max-width: 40ch;
  margin-bottom: 2rem;
}

.stm-hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.stm-stat-num {
  font-family: var(--stm-font-title);
  font-size: 2.2rem;
  color: var(--stm-gold);
  line-height: 1;
}
.stm-stat-label {
  font-size: 0.75rem;
  color: var(--stm-text-dim);
  letter-spacing: 0.04em;
  margin-top: 0.2rem;
}

/* Hero visual */
.stm-hero-visual { position: relative; padding-bottom: 1.5rem; padding-left: 1.5rem; }

.stm-photo-frame {
  aspect-ratio: 3/4;
  background: var(--stm-dark-3);
  border: 1px solid rgba(255,255,0,0.15);
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}
.stm-photo-frame::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,0.9) 100%);
  z-index: 1;
}
.stm-photo-badge {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: var(--stm-gold);
  color: var(--stm-dark);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.35rem 0.7rem;
  border-radius: 1px;
  z-index: 2;
}
.stm-photo-label {
  position: absolute;
  bottom: 1.5rem;
  left: 1.5rem;
  right: 1.5rem;
  z-index: 2;
}
.stm-photo-cat {
  font-size: 0.72rem;
  color: var(--stm-text-dim);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.2rem;
}
.stm-photo-title {
  font-size: 1.2rem;
  color: var(--stm-text);
  margin: 0;
}
.stm-photo-mini {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40%;
  aspect-ratio: 1;
  background: var(--stm-dark-4);
  border: 1px solid rgba(255,255,0,0.2);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── FOOTER ──────────────────────────────────────────── */
.stm-footer {
  background: var(--stm-dark);
  border-top: 1px solid rgba(255,255,255,0.04);
}

.stm-footer-copy {
  font-size: 0.78rem;
  color: var(--stm-text-dim2);
  margin-top: 0.25rem;
}

/* ── WHATSAPP GOMB ───────────────────────────────────── */
.stm-wa-btn {
  position: fixed;
  bottom: 1.75rem;
  right: 1.75rem;
  width: 54px;
  height: 54px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 300;
  box-shadow: 0 4px 20px rgba(37,211,102,0.35);
  transition: transform 0.2s, box-shadow 0.2s;
}
.stm-wa-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 28px rgba(37,211,102,0.5);
}
.stm-wa-tooltip {
  position: absolute;
  right: 64px;
  background: var(--stm-dark-2);
  color: var(--stm-text);
  font-size: 0.78rem;
  font-weight: 500;
  white-space: nowrap;
  padding: 0.4rem 0.8rem;
  border-radius: 3px;
  border: 1px solid rgba(255,255,255,0.08);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
  top: 50%;
  transform: translateY(-50%);
}
.stm-wa-btn:hover .stm-wa-tooltip { opacity: 1; }

/* ── SCROLL REVEAL ───────────────────────────────────── */
.stm-reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.stm-reveal.visible { opacity: 1; transform: translateY(0); }

.stm-reveal-left {
  opacity: 0;
  transform: translateX(-20px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.stm-reveal-left.visible { opacity: 1; transform: translateX(0); }

.stm-reveal-right {
  opacity: 0;
  transform: translateX(20px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.stm-reveal-right.visible { opacity: 1; transform: translateX(0); }

.stm-hero .stm-reveal,
.stm-hero .stm-reveal-left,
.stm-hero .stm-reveal-right { opacity: 1; transform: none; }

/* ── HERO IMAGE SLIDER ───────────────────────────────── */
.stm-hero-slider {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

/* Bootstrap carousel belső elemek teljes magasság */
.stm-hero-slides,
.stm-hero-slides .carousel-item,
.stm-hero-slides .carousel-item.active {
  height: 100% !important;
}

.stm-hero-slide-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

/* Sötét overlay a szöveg olvashatóságáért */
.stm-hero-slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    100deg,
    rgba(0,0,0,0.82) 0%,
    rgba(0,0,0,0.55) 55%,
    rgba(0,0,0,0.25) 100%
  );
}

/* Carousel transition */
.stm-hero-slider .carousel-item {
  transition: transform 0.8s ease-in-out;
}

/* Tartalom a képek felett */
.stm-hero-content-wrap {
  position: relative;
  z-index: 2;
}

/* Indikátor pontok (hero) */
.stm-hero-indicators {
  bottom: 2rem;
  margin: 0;
  gap: 0.5rem;
  /* Bootstrap felülírás */
  --bs-carousel-indicator-width: 8px;
  --bs-carousel-indicator-height: 8px;
}
.stm-hero-indicators [data-bs-target],
.stm-hero-indicators button {
  width: 8px !important;
  height: 8px !important;
  border-radius: 50% !important;
  background-color: rgba(255,255,255,0.35) !important;
  border-top: none !important;
  border-bottom: none !important;
  border: none !important;
  padding: 0 !important;
  margin: 0 3px !important;
  opacity: 1 !important;
  transition: background-color 0.25s, transform 0.25s !important;
  flex-shrink: 0;
}
.stm-hero-indicators [data-bs-target].active,
.stm-hero-indicators button.active {
  background-color: var(--stm-gold) !important;
  transform: scale(1.3);
}

/* Ha van slider, a hero-bg átlátszó lesz (a slide adja a hátteret) */
.stm-hero:has(.stm-hero-slider) .stm-hero-bg,
.stm-hero:has(.stm-hero-slider) .stm-hero-accent {
  display: none;
}

/* Fallback ha :has() nem támogatott */
.stm-hero-bg-hidden { display: none; }

@media (max-width: 767px) {
  .stm-hero-indicators { bottom: 1rem; }
  .stm-hero-indicators button { width: 8px; height: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  .stm-hero-slider .carousel-item { transition: none; }
}

/* ── FOOTER SOCIAL WRAPPER ───────────────────────────── */
.stm-footer-social {
  display: flex;
  align-items: flex-start;
}

/* ── FOOTER LAYOUT ───────────────────────────────────── */
.stm-footer-top {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 2rem;
  align-items: start;
}

.stm-footer-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.stm-footer-social-wrap {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  padding-top: 0.5rem;
}

.stm-social-btn {
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  flex-shrink: 0;
}
.stm-social-btn:hover {
  border-color: var(--stm-gold);
  background: rgba(255,255,0,0.06);
}

/* Tablet */
@media (max-width: 991px) {
  .stm-footer-top {
    grid-template-columns: 1fr 1fr;
  }
  .stm-footer-social-wrap {
    grid-column: span 2;
  }
}

/* Mobil */
@media (max-width: 575px) {
  .stm-footer-top {
    grid-template-columns: 1fr;
  }
  .stm-footer-social-wrap {
    grid-column: span 1;
  }
  .stm-social-btn {
    width: 52px !important;
    height: 52px !important;
  }
  .stm-social-btn svg {
    width: 26px !important;
    height: 26px !important;
  }
  /* Newsletter: teljes szélesség */
  .stm-nl-footer-widget { width: 100%; }
  .stm-nl-fw-row {
    flex-direction: column !important;
    max-width: 100% !important;
  }
  .stm-nl-fw-input,
  .stm-nl-fw-btn {
    width: 100% !important;
  }
}
