/* =========================================================================
   Flagrum Studios - egyedi stílusok (Bootstrap 5 fölé rétegezve)
   Paletta: meleg, sötét stúdió hangulat, borostyán/réz akcentussal.
   ========================================================================= */

:root{
  --bg:        #0E0D0C;
  --surface:   #17140F;
  --surface-2: #1F1B14;
  --line:      #322C22;
  --text:      #F1EAE0;
  --muted:     #A79A87;
  --accent:    #CE8B3E;
  --accent-2:  #8C5A28;
  --radius:    2px;

  --font-display: 'Sora', 'Inter', sans-serif;
  --font-body:    'Inter', sans-serif;
}

*{ scrollbar-color: var(--accent-2) var(--bg); }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--navbar-height, 0px) + 1rem);
}

body{
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
}

h1, h2, h3, h4, h5, .display-font{
  font-family: var(--font-display);
  letter-spacing: -0.01em;
}

a{ color: var(--accent); text-decoration: none; }
a:hover{ color: #E4A65C; }

section{ padding: 6rem 0; border-top: 1px solid var(--line); }
section:first-of-type{ border-top: none; }

/* ---- Navbar ------------------------------------------------------- */
.studio-navbar{
  background: rgba(14,13,12,0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  padding: .85rem 0;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: .6rem;

  font-family: var(--font-display);
  font-weight: 800;
  color: #ab140b !important;
  letter-spacing: .04em;
}

.brand-text {
  height: 60px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  line-height: 1;
}

.brand-name {
  color: #ab140b;
  font-size: 1.3rem;
  font-weight: 800;
}

.brand-studios {
  color: #0a90c3;
  font-size: 1.3rem;
  font-weight: 400;
  margin-top: .25rem;
  letter-spacing: .08em;
}

/* .navbar-brand span{ color: #0a90c3; font-weight: 400; } */
.nav-link{
  color: var(--muted) !important;
  font-size: 1.15rem;
  font-weight: 500;
  padding: .4rem .85rem !important;
}
.nav-link:hover{ color: var(--text) !important; }

.lang-switch{ font-size: .82rem; color: var(--muted); }
.lang-switch a{ color: var(--muted); padding: 0 .2rem; }
.lang-switch a.active{ color: var(--accent); font-weight: 700; }

@media (max-width: 991px) {
  .navbar-toggler {
    margin-right: 20px;
  }
}

/* ---- Hero ----------------------------------------------------------- */
.hero {
  min-height: 100vh;
  box-sizing: border-box;

  display: flex;
  align-items: center;

  padding-top: calc(var(--navbar-height, 0px) + 1rem);
  padding-bottom: 2rem;

  position: relative;
  overflow: hidden;

  background:
    radial-gradient(
      ellipse at 75% 30%,
      rgba(206,139,62,0.10),
      transparent 55%
    ),
    var(--bg);
}
.hero-eyebrow{
  color: var(--accent);
  font-size: .95rem;
  font-weight: 600;
  margin-bottom: 1rem;
}
.hero h1{
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  font-weight: 800;
  line-height: 1.02;
  margin-bottom: 1.4rem;
  max-width: 14ch;
}
.hero p.lead{
  color: var(--muted);
  max-width: 46ch;
  font-size: 1.15rem;
  margin-bottom: 2.2rem;
}

.hero-image {
  width: 600px;
  height: 400px;
  display: block;
}

@media (max-width: 991px) {
  .hero-image {
	width: 100%;
	height: auto;
    padding-top: 30px;
  }
}

.btn-accent{
  background: var(--accent);
  border: none;
  color: #16110A;
  font-weight: 700;
  padding: .8rem 1.9rem;
  border-radius: var(--radius);
}
.btn-accent:hover{ background: #E4A65C; color: #16110A; }
.btn-outline-accent{
  border: 1px solid var(--line);
  color: var(--text);
  padding: .8rem 1.9rem;
  border-radius: var(--radius);
}
.btn-outline-accent:hover{ border-color: var(--accent); color: var(--accent); }

/* Waveform decoration - built from CSS bars, echoes the studio's own
   audio-visualizer work rather than a generic hero graphic. */
.waveform{
  display: flex;
  align-items: center;
  gap: 4px;
  height: 160px;
}
.waveform span{
  display: block;
  width: 5px;
  background: linear-gradient(180deg, var(--accent), var(--accent-2));
  border-radius: 2px;
  opacity: .85;
}

/* ---- Section headings ------------------------------------------------ */
.section-heading{
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 700;
  margin-bottom: 1rem;
}
.section-kicker{
  color: var(--accent);
  font-weight: 600;
  font-size: .9rem;
  margin-bottom: .6rem;
}

/* ---- About ------------------------------------------------------------ */
.about-points{ list-style: none; padding: 0; margin: 2rem 0 0; }
.about-points li{
  padding: .9rem 0;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: .9rem;
  color: var(--text);
}
.about-points li:last-child{ border-bottom: 1px solid var(--line); }
.about-points li::before{
  content: '';
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  flex: none;
}

/* ---- Services ---------------------------------------------------------- */
.service-card{
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2.2rem;
  height: 100%;
}
.service-card .price{
  color: var(--accent);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  margin-top: 1.2rem;
}
.service-card h3{ font-size: 1.3rem; margin-bottom: .8rem; }
.service-card p{ color: var(--muted); margin-bottom: 0; }

/* ---- References / player ----------------------------------------------- */
.ref-player{
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.ref-track{
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: .85rem .5rem;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
}
.ref-track:last-child{ border-bottom: none; }
.ref-track:hover{ background: var(--surface-2); }
.ref-track .track-num{
  font-family: var(--font-display);
  color: var(--muted);
  width: 1.6rem;
}
.ref-track.playing .track-num{ color: var(--accent); }
.ref-track .track-name{ flex: 1; }
.ref-track .track-soundcloud{ color: var(--muted); font-size: .85rem; }

/* ---- Contact ------------------------------------------------------------ */
.contact-form .form-control{
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--text);
  border-radius: var(--radius);
  padding: .75rem .9rem;
}
.contact-form .form-control:focus{
  background: var(--surface);
  color: var(--text);
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(206,139,62,0.15);
}
.contact-form label{ color: var(--muted); font-size: .88rem; margin-bottom: .35rem; }
.contact-meta div{ margin-bottom: .9rem; color: var(--muted); }
.contact-meta strong{ color: var(--text); display: block; font-family: var(--font-display); }

.map-frame{ border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }

/* Fájlfeltöltés alapértelmezett megjelenése */
.contact-form .custom-file-upload {
  background: var(--surface);
  border: 1px solid var(--line);
  color: #FFFFFF;
  border-radius: var(--radius);
  padding: .75rem .9rem;
}

.contact-form .custom-file-upload:focus {
  background: var(--surface);
  color: var(--text);
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(206,139,62,0.15);
}

/* Mobilnézet */
@media (max-width: 576px) {
  .contact-form .custom-file-upload {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: .5rem;
  }

  .contact-form #file-name {
    display: block;
    max-width: 100%;
    overflow-wrap: anywhere;
  }
}



/* ---- Footer -------------------------------------------------------------- */
.studio-footer{
  background: var(--surface);
  border-top: 1px solid var(--line);
  padding: 1.5rem 0 1rem;
  margin-top: 4rem;
}
.studio-footer h5{ font-weight: 800; }
.studio-footer h5 span{ color: var(--accent); font-weight: 400; }
.studio-footer h6{ font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: .9rem; }
.social-links a{
  display: inline-flex; align-items:center; justify-content:center;
  width: 34px; height: 34px;
  border: 1px solid var(--line);
  border-radius: 50%;
  margin-right: .5rem;
  font-size: .7rem;
  color: var(--muted);
}
.social-links a:hover{ border-color: var(--accent); color: var(--accent); }





.footer .widget-title {
    position: relative;
    display: block;
    margin-bottom: 10px;
}

.footer .widget-title small {
    color: #cccccc;
    display: block;
    padding: 0 58px;
    text-transform: uppercase;
}

.footer .widget-title h3 {
    color: #fff;
    font-weight: 700;
    font-size: 22px;
    padding: 0;
    margin: 0;
    line-height: 1 !important;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links a {
    color: #ffffff;
}

.footer-links a:hover,
.footer a:hover {
    color: #f4f4f4 !important;
}

.footer-links li {
    margin-bottom: 5px;
    display: block;
    width: 100%;
	padding: 5px 0px;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.1);
}

.twitter-widget li {
    margin-bottom: 0;
    border: 0 !important;
}

.twitter-widget li i {
    border-right: 0 !important;
    margin-right: 0;
}

.footer-links li:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border: 0;
}

.footer-links i {
    display: inline-block;
    width: 25px;
    margin-right: 10px;
    border-right: 1px dashed rgba(255, 255, 255, 0.1);
}

.copyrights {
    border-top: 1px dashed rgba(255, 255, 255, 0.1);
    background-color: #1f1f1f;
    box-sizing: border-box;
    width: 100%;
    text-align: left;
    padding: 10px 0px;
    overflow: hidden;
}

/* Footer left */

.footer-distributed .footer-left {
    float: left;
}

.footer-distributed .footer-links {
    margin: 0 0 10px;
    text-transform: uppercase;
    padding: 0;
}

.footer-distributed .footer-links a {
    display: inline-block;
    line-height: 1.8;
    margin: 0 10px 0 10px;
    text-decoration: none;
}

.footer-distributed .footer-company-name {
    font-weight: 300;
    margin: 0 10px;
    color: #666;
    padding: 5px 0px;
}


/* Footer right */

.footer-distributed .footer-right {
    float: right;
}

.footer-links-soi{
  list-style: none;
  display: flex;
  gap: .6rem;
  padding: 0;
  margin: 0;
  margin-top: 1.25rem;
  justify-content: flex-end;
}
.footer-links-soi li{ margin: 0; }
.footer-links-soi a{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;               /* kör mérete (volt: 38px) */
  height: 56px;
  border: 1px solid #5c5c5c; /* szürke keret */
  border-radius: 50%;
  color: #b5b5b5;            /* világosszürke ikon */
  font-size: 1.5rem;         /* ikon mérete (volt: .95rem) */
  transition: transform .35s cubic-bezier(.34,1.56,.64,1),
              color .25s ease,
              border-color .25s ease,
              background .25s ease;
}
.footer-links-soi a:hover{
  color: #ffffff;            /* hoverre fehér */
  border-color: #ffffff;
  background: rgba(255,255,255,.08);
  transform: translateY(-4px) rotate(-8deg) scale(1.08);
}



/* ---- Auth / dashboard pages ----------------------------------------------- */
.auth-wrapper{
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 90px;
  padding-bottom: 3rem;
}
.auth-card{
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2.5rem;
  max-width: 460px;
  margin: 0 auto;
}
.dash-card{
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.75rem;
  margin-bottom: 1.5rem;
}

.dash-card h2{ font-size: 1.15rem; margin-bottom: 1.1rem; }
.table-dark-studio{ color: var(--text); }
.table-dark-studio th{ color: var(--muted); font-weight: 600; font-size: .82rem; text-transform: uppercase; letter-spacing: .04em; border-color: var(--line); }
.table-dark-studio td{ border-color: var(--line); vertical-align: middle; }

.sidebar-nav{ background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem; }
.sidebar-nav a{
  display: block; padding: .6rem .8rem; color: var(--muted); border-radius: var(--radius);
}
.sidebar-nav a.active, .sidebar-nav a:hover{ background: var(--surface-2); color: var(--text); }

.status-badge{ padding: .3rem .7rem; border-radius: 20px; font-size: .78rem; font-weight: 600; }
.status-kezdeti{ background: #33302a; color: #C7BBA8; }
.status-dalszerzés{ background: #3A2E17; color: var(--accent); }
.status-stúdió{ background: #1E3230; color: #6FC9BB; }
.status-mixing{ background: #302038; color: #C592E0; }
.status-befejezett{ background: #1E3320; color: #7FCB84; }

@media (max-width: 991px){
  section{ padding: 4rem 0; }
  .waveform{ height: 100px; margin-top: 2rem; }
}

/* Mobil: a gombok középre igazítva */
@media (max-width: 767px){

  /* Főoldali gombsorok (hero, szolgáltatások): "Foglalj időpontot" / "Szolgáltatások" / PDF / kapcsolat */
  .d-flex.flex-wrap.gap-3{
    justify-content: center;
  }

  /* Kapcsolat űrlap "Küldés" gombja */
  #contactForm button[type="submit"]{
    display: block;
    margin-left: auto;
    margin-right: auto;
  }

  /* Az űrlap alatti állapotüzenet is középre */
  #contactStatus{ text-align: center; }
}

/* Közelgő időpontok: kompakt, szélesebb táblázat mobilon */
@media (max-width: 767px){

  /* a kártya belső margója kisebb, így a táblázat szélesebb lesz */
  #appointments.dash-card{
    padding: 1rem .5rem;
  }
  #appointments.dash-card h2{
    padding: 0 .5rem;
  }

  .appointments-table{
    font-size: .82rem;
    margin-bottom: 0;
  }
  .appointments-table th,
  .appointments-table td{
    padding: .45rem .3rem;
    white-space: normal;
    overflow-wrap: break-word;
    hyphens: manual;              /* csak a beírt &shy; helyén tör */
  }
  .appointments-table th{
    font-size: .7rem;
  }
  .appointments-table .small{
    font-size: .74rem;
  }
}

.ref-embed iframe{ display:block; border-radius: 2px; }
.ref-carousel{
  position: relative;
  padding: 0 56px;              /* hely a nyilaknak mindkét oldalon */
}
.ref-carousel .carousel-item{ min-height: 546px; }
.ref-indicators [data-bs-target]{ background-color: var(--accent); }

.ref-arrow{
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border: none;
  border-radius: 50%;
  background: var(--accent);
  color: #16110A;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 5;
  transition: transform .25s cubic-bezier(.34,1.56,.64,1), background .25s ease;
}
.ref-arrow-prev{ left: 0; }
.ref-arrow-next{ right: 0; }
.ref-arrow:hover{
  background: #E4A65C;
  transform: translateY(-50%) scale(1.12);
}
.ref-arrow:focus-visible{ outline: 2px solid var(--text); outline-offset: 3px; }

/* Mobil (és kis tablet): nyilak a lejátszók alatt, lejátszók teljes szélességben */
@media (max-width: 767px){
  .ref-carousel{
    padding: 0 0 64px;          /* nincs oldali padding, alul hely a nyilaknak */
  }
  .ref-carousel .carousel-item{ min-height: 0; }

  .ref-arrow{
    top: auto;
    bottom: 0;
    transform: none;
    width: 44px;
    height: 44px;
  }
  .ref-arrow-prev{ left: calc(50% - 110px); }
  .ref-arrow-next{ right: calc(50% - 110px); }
  .ref-arrow:hover{ transform: scale(1.1); }

  .ref-indicators{
    position: absolute !important;
    bottom: 0;
    left: 0;
    right: 0;
    height: 44px;
    margin: 0 !important;
    align-items: center;
    justify-content: center;
  }
}

/* ---- Képek beúszása alulról ------------------------------------------ */
.js .hero-image,
.js #about img,
.js #services .row img,
.js #partners img{
  opacity: 0;
  transform: translateY(48px) scale(.97);
  transition: opacity .55s ease-out,
              transform .7s cubic-bezier(.16, 1, .3, 1);
  will-change: opacity, transform;
}

.js .is-in{
  opacity: 1 !important;
  transform: none !important;
}

/* Akinél a rendszer csökkentett mozgást kér, nincs animáció */
@media (prefers-reduced-motion: reduce){
  .js .hero-image,
  .js #about img,
  .js #services .row img,
  .js #partners img{
    opacity: 1;
    transform: none;
    transition: none;
  }
}
