/*
Theme Name: MBST Budapest Pro
Version: 1.0.0
Description: Vlastné štýly pre stránku mbstbudapest.hu
*/

/* =========================================================
   ZÁKLAD
   ========================================================= */

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, sans-serif;
  line-height: 1.6;
  color: #162236;
  background: #f4f7fb;
}

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

a {
  color: #0b63d8;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

h1,
h2,
h3,
h4 {
  margin: 0 0 0.5em;
  font-weight: 700;
  color: #0a3a66;
}

p {
  margin: 0 0 0.75em;
}

/* obal */
.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 16px;
}

/* sekcie */
.section {
  margin: 32px 0;
}

.section h2 {
  margin: 10px 0 14px;
  font-size: clamp(18px, 2.2vw, 24px);
}

.section .lead {
  color: #34425a;
  opacity: 0.9;
}

/* kotvy pod sticky navigáciu */
#mi-az-mbst,
#mit-kezelunk,
#hogyan,
#gyik,
#kapcsolat {
  scroll-margin-top: 84px;
}

/* =========================================================
   HLAVIČKA + NAVIGÁCIA
   ========================================================= */

.site-header {
  background: transparent;
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
}

/* logo/ názov */
.site-brand a {
  font-weight: 700;
  letter-spacing: 0.03em;
  color: #0a3a66;
  text-decoration: none;
}

/* navigácia sticky */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 999;
  background: transparent;
  transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

/* keď scrollujeme – JS pridá .solid */
.site-nav.solid {
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 2px 16px rgba(9, 30, 66, 0.08);
  backdrop-filter: saturate(1.2) blur(6px);
}

/* menu zoznam */
.site-nav__list,
.site-nav__list ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav__list {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
}

.site-nav__list > li {
  position: relative;
}

/* odkazy */
.site-nav__list a {
  position: relative;
  padding: 8px 12px;
  font-size: 14px;
  color: #12223a;
  text-decoration: none;
  transition: color 0.18s ease;
}

/* aktívna položka */
.site-nav__list a.active,
.site-nav__list li.current-menu-item > a {
  color: #0b63d8;
  font-weight: 700;
}

/* animovaná podčiarka */
.site-nav__list a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 2px;
  background: #0b63d8;
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.18s ease;
}

.site-nav__list a:hover::after,
.site-nav__list a:focus-visible::after,
.site-nav__list a.active::after {
  transform: scaleX(1);
}

/* rodič s deťmi – šípka */
.site-nav .menu-item-has-children > a::after {
  content: "▾";
  margin-left: 6px;
  font-size: 0.9em;
  opacity: 0.85;
  transition: transform 0.15s ease;
}

/* otvorený stav (desktop hover, mobil .open) */
.site-nav .menu-item-has-children:hover > a::after,
.site-nav .menu-item-has-children.open > a::after {
  transform: rotate(180deg);
}

/* SUBMENU */
.site-nav .sub-menu {
  position: absolute;
  left: 0;
  top: 100%;
  min-width: 220px;
  margin-top: 6px;
  padding: 6px 0;
  border-radius: 10px;
  border: 1px solid #e6eaf0;
  background: #ffffff;
  box-shadow: 0 12px 24px rgba(10, 58, 102, 0.08);
  display: none;
  z-index: 9999;
}

.site-nav__list li:hover > .sub-menu,
.site-nav__list li:focus-within > .sub-menu {
  display: block;
}

.site-nav .sub-menu li {
  position: relative;
}

.site-nav .sub-menu a {
  display: block;
  padding: 10px 16px;
  color: #0a3a66;
  border-radius: 8px;
  text-decoration: none;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.site-nav .sub-menu a:hover,
.site-nav .sub-menu a:focus-visible {
  background: #f7fbff;
  color: #0b63d8;
}

/* aktívna položka v submenu */
.site-nav .sub-menu .current-menu-item > a {
  background: #eef5ff;
  color: #0b63d8;
  font-weight: 600;
}

/* MOBILNÉ MENU – submenu inline bez tieňa */
@media (max-width: 1024px) {
  .site-header .wrap {
    flex-wrap: wrap;
    gap: 10px;
  }

  .site-nav__list {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-nav .sub-menu {
    position: static;
    box-shadow: none;
    border: 0;
    margin: 4px 0 0;
    padding: 4px 0;
    display: none;
  }

  .site-nav__list li.open > .sub-menu {
    display: block;
  }
}

/* =========================================================
   HERO
   ========================================================= */

.hero {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 380px;
  text-align: center;
  color: #ffffff;
  padding: 36px 16px;
}

.home .hero {
  background-image: linear-gradient(
      180deg,
      rgba(4, 25, 56, 0.55),
      rgba(4, 25, 56, 0.3) 50%,
      rgba(4, 25, 56, 0.65)
    ),
    url("https://mbstbudapest.hu/wp-content/uploads/2025/10/premium_photo-1756840434046-f4b4563d6499.jpg");
  background-size: cover;
  background-position: center;
}

.hero .wrap {
  position: relative;
  z-index: 1;
  max-width: 980px;
  margin: 0 auto;
}

.hero h1 {
  color: #ffffff; /* biely text v hero */
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.25;
  margin-bottom: 12px;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.45); /* trocha silnejší tieň pre čitateľnosť */
}


.hero p.lead {
  opacity: 0.95;
  font-size: clamp(14px, 1.8vw, 16.5px);
}

.hero .btn {
  margin: 8px 6px 0;
  min-height: 36px;
}

/* vyšší hero na veľkých displejoch */
@media (min-width: 1024px) {
  .hero {
    min-height: 480px;
  }
}

/* =========================================================
   TLAČIDLÁ
   ========================================================= */

.btn,
.btn-ghost {
  display: inline-block;
  padding: 9px 14px;
  border-radius: 10px;
  font-weight: 600;
  text-decoration: none;
  transition:
    transform 0.08s ease,
    box-shadow 0.18s ease,
    background-color 0.18s ease,
    border-color 0.18s ease,
    color 0.18s ease;
  will-change: transform;
}

.btn {
  background: #0b63d8;
  border: 1px solid #0b63d8;
  color: #ffffff;
}

.btn-ghost {
  background: #f7fbff;
  border: 1px solid #d7e3f3;
  color: #0a3a66;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 26px rgba(11, 99, 216, 0.22);
}

.btn-ghost:hover {
  background: #eaf2ff;
  border-color: #a8c8ff;
  color: #0b63d8;
}

.btn:active,
.btn-ghost:active {
  transform: translateY(0);
  box-shadow: none;
}

.btn:focus-visible,
.btn-ghost:focus-visible {
  outline: 2px solid #0b63d8;
  outline-offset: 2px;
  box-shadow: 0 0 0 4px rgba(11, 99, 216, 0.18);
}

/* hero varianty */
.hero .btn-primary {
  background: #0b63d8;
  border-color: #0b63d8;
  color: #ffffff;
}

.hero .btn-secondary {
  background: #f7fbff;
  color: #0a3a66;
  border: 1px solid #cfe0f8;
}

.hero .btn-primary:hover {
  background: #0a57bf;
  border-color: #0a57bf;
}

.hero .btn-secondary:hover {
  background: #eef5ff;
  color: #0b63d8;
}

/* na úzkych mobiloch – tlačidlá do 2 stĺpcov */
@media (max-width: 640px) {
  .wrap .btn {
    display: inline-flex;
    width: calc(50% - 8px);
    justify-content: center;
  }
}

/* =========================================================
   KARTY / GRID – „Mit kezelünk?“ a pod.
   ========================================================= */

.section .grid {
  display: grid;
  gap: 16px;
  align-items: stretch;
}

.section .grid > * {
  background: #ffffff;
  border: 1px solid #e9eef5;
  border-radius: 12px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  transition:
    box-shadow 0.18s ease,
    transform 0.08s ease,
    border-color 0.18s ease,
    background-color 0.18s ease;
}

.section .grid > * p {
  flex: 1 1 auto;
}

.section .grid > * .btn-ghost {
  margin-top: 12px;
}

.section .grid > *:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(9, 30, 66, 0.12);
  border-color: #e4efff;
  background: #fbfdff;
}

/* špeciálne pre karty diagnóz */
.treat-card {
  cursor: default;
}

.treat-card img {
  transition: transform 0.18s ease, opacity 0.18s ease;
}

.treat-card:hover img {
  transform: scale(1.06);
  opacity: 0.95;
}

/* =========================================================
   HOGYAN ZAJLIK – ČÍSLOVANÉ KROKY
   ========================================================= */

.flow-steps {
  counter-reset: step;
  list-style: none;
  padding: 0;
  margin: 6px 0 16px;
}

.flow-steps li {
  position: relative;
  padding-left: 44px;
  margin: 8px 0 10px;
  line-height: 1.6;
}

.flow-steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0;
  top: 2px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 700;
  color: #0b63d8;
  background: #eef5ff;
  border: 1px solid #cfe0f8;
}

.flow-steps b {
  color: #0a3a66;
}

/* =========================================================
   GYIK – FAQ (details/summary)
   ========================================================= */

#gyik details {
  border: 1px solid #e7eef8;
  border-radius: 10px;
  margin: 8px 0;
  background: #ffffff;
}

#gyik details[open] {
  background: #fbfdff;
  border-color: #dfe9f6;
}

#gyik summary {
  padding: 14px 18px;
  cursor: pointer;
  list-style: none;
  position: relative;
  font-weight: 600;
  color: #0a3a66;
}

#gyik summary::-webkit-details-marker {
  display: none;
}

#gyik summary::after {
  content: "";
  width: 10px;
  height: 10px;
  border-right: 2px solid #0b63d8;
  border-bottom: 2px solid #0b63d8;
  position: absolute;
  right: 16px;
  top: 50%;
  margin-top: -6px;
  transform: rotate(-45deg);
  transition: transform 0.2s ease;
}

#gyik details[open] summary::after {
  transform: rotate(45deg);
}

#gyik .faq-content {
  padding: 0 18px 14px;
  color: #26354d;
}

/* =========================================================
   KONTAKT + MAPA
   ========================================================= */

#kapcsolat .contact-card {
  border: 1px solid #e9eef5;
  border-radius: 12px;
  background: #ffffff;
  padding: 14px 16px;
  margin-bottom: 10px;
}

#kapcsolat .contact-card a {
  color: #0b63d8;
  text-decoration: none;
}

#kapcsolat .contact-card a:hover {
  text-decoration: underline;
}

iframe[src*="google.com/maps"] {
  border-radius: 12px;
  border: 1px solid #e7eef8;
  box-shadow: 0 6px 20px rgba(9, 30, 66, 0.06);
}

/* =========================================================
   PÄTIČKA
   ========================================================= */

.site-footer {
  color: #6a7b95;
  padding: 18px 0 24px;
  background: #f5f7fb;
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
}

.site-footer a {
  color: #0b63d8;
  text-decoration: none;
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
  text-decoration-thickness: 1px;
}

.site-footer a:hover {
  color: #0b63d8;
  text-decoration: underline;
}

.site-footer ul {
  margin: 6px 0 0;
  padding: 0;
  list-style: none;
}

.site-footer li {
  margin: 4px 0;
}

/* sociálne siete – brand ikonky */
.site-footer .footer-social {
  display: flex;
  gap: 22px;
  align-items: center;
  justify-content: center;
}

.site-footer .footer-social__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid #d4dde9;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

/* samotné svg */
.site-footer .footer-social__link svg {
  width: 32px;
  height: 32px;
}

/* Facebook – originál modrá */
.site-footer .footer-social__link--fb svg path {
  fill: #1877f2;
}

/* Instagram – gradient je priamo v SVG, netreba meniť */
.site-footer .footer-social__link--ig svg path {
  /* nothing */
}

/* hover efekt */
.site-footer .footer-social__link:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(9, 30, 66, 0.18);
  border-color: #b8c7e6;
}

/* footer – mobilné rozloženie */
@media (max-width: 720px) {
  .site-footer .wrap {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}

/* =========================================================
   RESPONSIVE & ACCESSIBILITY
   ========================================================= */

@media (max-width: 640px) {
  .section {
    margin: 28px 0;
  }
}

/* prefer-reduced-motion: vypneme animácie */
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}












