/* ==========================================================================
   Alkalmasságvizsgálat – Dr. Cseke Csaba
   MediCenter-inspirált orvosi arculat (éles sarkok, cián/navy, light tipográfia)
   ========================================================================== */

:root {
  --c-cyan:        #29b6d8;   /* fő accent */
  --c-cyan-dark:   #1f9dbd;
  --c-blue:        #1f86c6;   /* középső infódoboz */
  --c-navy:        #2b3e79;   /* sötét doboz / fejléc-elemek */
  --c-navy-dark:   #24335f;

  --c-ink:         #2f3033;   /* címsorok */
  --c-text:        #757a80;   /* törzsszöveg */
  --c-text-soft:   #9aa0a6;
  --c-bg:          #ffffff;
  --c-bg-soft:     #f4f5f6;
  --c-bg-soft2:    #eceef0;
  --c-border:      #e5e7ea;
  --c-topbar:      #f4f5f6;

  --shadow:    0 2px 8px rgba(40,50,70,0.06);
  --shadow-lg: 0 12px 34px rgba(40,50,70,0.12);
  --maxw:      1180px;
  --header-h:  84px;

  --font: "Open Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 130px; }

body {
  margin: 0; font-family: var(--font); color: var(--c-text);
  background: var(--c-bg); line-height: 1.75; font-weight: 400; font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--c-cyan); text-decoration: none; }
a:hover { color: var(--c-cyan-dark); }

h1, h2, h3, h4 { color: var(--c-ink); margin: 0 0 .5em; line-height: 1.2; font-weight: 300; }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); font-weight: 400; }
p { margin: 0 0 1rem; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }
:focus-visible { outline: 3px solid var(--c-cyan); outline-offset: 2px; }

.skip-link { position: absolute; left: 12px; top: -60px; z-index: 300; background: var(--c-cyan); color: #fff; padding: 10px 16px; }
.skip-link:focus { top: 12px; }

/* ==========================================================================
   Felső kontaktsáv
   ========================================================================== */
.topbar { background: var(--c-topbar); border-bottom: 1px solid var(--c-border); font-size: .82rem; color: var(--c-text); }
.topbar-inner { max-width: var(--maxw); margin: 0 auto; padding: 9px 22px; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.topbar-list { display: flex; gap: 26px; flex-wrap: wrap; list-style: none; margin: 0; padding: 0; }
.topbar-list li { display: flex; align-items: center; gap: 8px; }
.topbar-list svg { color: var(--c-cyan); flex: none; }
.topbar-list a { color: var(--c-text); }
.topbar-list a:hover { color: var(--c-cyan); }
.topbar-social { display: flex; gap: 14px; align-items: center; }
.topbar-social a { color: var(--c-text-soft); display: inline-flex; }
.topbar-social a:hover { color: var(--c-cyan); }
@media (max-width: 720px){ .topbar-social { display: none; } .topbar-inner { justify-content: center; } }

/* ==========================================================================
   Fejléc / navigáció
   ========================================================================== */
.site-header { position: sticky; top: 0; z-index: 100; background: #fff; border-bottom: 1px solid var(--c-border); }
.nav { max-width: var(--maxw); margin: 0 auto; height: var(--header-h); padding: 0 22px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--c-ink); }
.brand:hover { color: var(--c-ink); }
.brand .logo { width: 46px; height: 46px; flex: none; display: grid; place-items: center; }
.brand .logo img { width: 100%; height: 100%; object-fit: contain; }
.brand > span:last-child { font-size: 1.4rem; font-weight: 300; line-height: 1.1; letter-spacing: .01em; }
.brand small { display: block; font-size: .7rem; font-weight: 600; color: var(--c-text-soft); text-transform: uppercase; letter-spacing: .06em; margin-top: 2px; }

.nav-links { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav-links a { display: block; padding: 10px 15px; color: var(--c-ink); font-weight: 600; font-size: .82rem; text-transform: uppercase; letter-spacing: .03em; }
.nav-links a:hover { color: var(--c-cyan); }
.nav-links a.active { color: var(--c-cyan); }
.nav-cta { background: var(--c-cyan); color: #fff !important; padding: 12px 22px !important; }
.nav-cta:hover { background: var(--c-cyan-dark); color: #fff !important; }
.nav-cta.active { background: var(--c-cyan-dark); }

.nav-toggle { display: none; background: none; border: 1px solid var(--c-border); width: 46px; height: 46px; cursor: pointer; color: var(--c-ink); align-items: center; justify-content: center; }

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .nav-links {
    position: fixed; inset: calc(var(--header-h)) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--c-border); padding: 8px 16px;
    box-shadow: var(--shadow-lg); transform: translateY(-130%); transition: transform .28s ease; visibility: hidden;
  }
  .nav-links.open { transform: translateY(0); visibility: visible; }
  .nav-links a { padding: 13px 12px; font-size: .95rem; border-bottom: 1px solid var(--c-border); }
  .nav-cta { text-align: center; margin-top: 8px; }
}

/* Legördülő */
.has-dropdown { position: relative; }
.nav-links .drop-toggle { display: flex; align-items: center; gap: 6px; background: none; border: none; font: inherit; cursor: pointer; padding: 10px 15px; color: var(--c-ink); font-weight: 600; font-size: .82rem; text-transform: uppercase; letter-spacing: .03em; }
.nav-links .drop-toggle:hover, .has-dropdown:hover .drop-toggle, .nav-links .drop-toggle.active { color: var(--c-cyan); }
.drop-toggle .chev { transition: transform .2s; }
.has-dropdown:hover .drop-toggle .chev, .has-dropdown:focus-within .drop-toggle .chev { transform: rotate(180deg); }
.dropdown { position: absolute; top: 100%; left: 0; min-width: 280px; list-style: none; margin: 0; padding: 6px 0; background: #fff; border: 1px solid var(--c-border); border-top: 3px solid var(--c-cyan); box-shadow: var(--shadow-lg); opacity: 0; visibility: hidden; transform: translateY(8px); transition: .18s; }
.has-dropdown:hover .dropdown, .has-dropdown:focus-within .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown a { display: block; padding: 12px 20px; font-size: .82rem; text-transform: uppercase; letter-spacing: .03em; font-weight: 600; color: var(--c-ink); border-bottom: 1px solid var(--c-border); }
.dropdown li:last-child a { border-bottom: none; }
.dropdown a:hover { background: var(--c-bg-soft); color: var(--c-cyan); }
.dropdown a.active { color: var(--c-cyan); }
@media (max-width: 900px) {
  .nav-links .drop-toggle { width: 100%; font-size: .95rem; padding: 13px 12px; border-bottom: 1px solid var(--c-border); justify-content: space-between; }
  .dropdown { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: none; border-top: none; min-width: 0; padding: 0; background: var(--c-bg-soft); }
  .dropdown a { padding-left: 26px; }
  .drop-toggle .chev { display: none; }
}

/* ==========================================================================
   Hero (bal-igazított, fehér szöveg fotón)
   ========================================================================== */
.hero { position: relative; color: #fff; padding: clamp(84px, 15vw, 168px) 0; background-color: var(--c-navy); background-size: cover; background-position: center; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(20,30,55,.78) 0%, rgba(20,30,55,.5) 45%, rgba(20,30,55,.15) 100%); }
.hero .container { position: relative; z-index: 1; }
.hero .eyebrow { display: inline-block; margin-bottom: 1rem; font-size: .8rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: #fff; opacity: .9; }
.hero h1 { color: #fff; font-weight: 300; margin-bottom: .35em; max-width: 15ch; }
.hero h1 strong { font-weight: 700; }
.hero p { font-size: clamp(1.05rem, 2vw, 1.3rem); color: rgba(255,255,255,.92); max-width: 620px; margin: 0 0 1.8rem; font-weight: 300; }
.hero--sub { padding: clamp(70px, 11vw, 120px) 0; }

/* ==========================================================================
   Gombok (lapos, nagybetűs, nyíllal)
   ========================================================================== */
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 15px 30px; font-weight: 700; font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; cursor: pointer; border: 2px solid transparent; transition: background .15s, color .15s, border-color .15s; }
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--c-cyan); color: #fff; }
.btn-primary:hover { background: var(--c-cyan-dark); color: #fff; }
.btn-navy { background: var(--c-navy); color: #fff; }
.btn-navy:hover { background: var(--c-navy-dark); color: #fff; }
.btn-white { background: #fff; color: var(--c-navy); }
.btn-white:hover { background: #eef1f4; color: var(--c-navy); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.btn-ghost:hover { background: rgba(255,255,255,.15); color: #fff; }
.btn-outline { background: transparent; color: var(--c-cyan); border-color: var(--c-cyan); }
.btn-outline:hover { background: var(--c-cyan); color: #fff; }
.btn-row { display: flex; gap: 14px; flex-wrap: wrap; }

/* ==========================================================================
   Info-dobozok (a hero alatt) – MediCenter védjegy
   ========================================================================== */
.info-boxes { display: grid; grid-template-columns: repeat(3, 1fr); }
@media (max-width: 820px){ .info-boxes { grid-template-columns: 1fr; } }
.info-box { padding: 40px 38px; color: #fff; }
.info-box.cyan { background: var(--c-cyan); }
.info-box.blue { background: var(--c-blue); }
.info-box.navy { background: var(--c-navy); }
.info-box h3 { color: #fff; font-weight: 300; font-size: 1.5rem; margin-bottom: .7rem; }
.info-box p { color: rgba(255,255,255,.9); font-weight: 300; }
.info-box .ghost-link { display: inline-flex; align-items: center; gap: 10px; margin-top: 16px; padding: 11px 22px; border: 2px solid rgba(255,255,255,.6); color: #fff; font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.info-box .ghost-link:hover { background: rgba(255,255,255,.15); color: #fff; }
.hours { list-style: none; margin: 4px 0 0; padding: 0; }
.hours li { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid rgba(255,255,255,.18); font-weight: 300; }
.hours li:last-child { border-bottom: none; }
.hours strong { font-weight: 600; }

/* ==========================================================================
   Szekciók
   ========================================================================== */
.section { padding: clamp(54px, 8vw, 92px) 0; }
.section--soft { background: var(--c-bg-soft); }
.section--tint { background: var(--c-bg-soft2); }
.section-head { text-align: center; max-width: 760px; margin: 0 auto clamp(36px, 5vw, 56px); }
.section-head .kicker { display: block; color: var(--c-text-soft); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; font-size: .78rem; margin-bottom: .5rem; }
.section-head h2 { position: relative; padding-bottom: 20px; margin-bottom: .6rem; }
.section-head h2::after { content: ""; position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); width: 54px; height: 3px; background: var(--c-cyan); }
.section-head p { color: var(--c-text); font-size: 1.08rem; font-weight: 300; }
.section-head.left { text-align: left; margin-left: 0; }
.section-head.left h2::after { left: 0; transform: none; }

.prose { max-width: 780px; margin: 0 auto; font-weight: 300; font-size: 1.05rem; }
.prose.wide { max-width: 900px; }
.prose strong { color: var(--c-ink); font-weight: 600; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .45rem; }
.lead { font-size: 1.2rem; color: var(--c-text); font-weight: 300; }

/* Kiemelt blokk */
.callout { background: #fff; border: 1px solid var(--c-border); border-left: 3px solid var(--c-cyan); padding: 26px 30px; max-width: 860px; margin: 0 auto; box-shadow: var(--shadow); font-weight: 300; }
.callout p:last-child { margin-bottom: 0; }
.section--soft .callout, .section--tint .callout { background: #fff; }

/* ==========================================================================
   Rácsok / kártyák
   ========================================================================== */
.grid { display: grid; gap: 0; }
.grid-2 { grid-template-columns: repeat(2, 1fr); gap: 30px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

/* Kép-felül szolgáltatáskártya */
.service-card { background: var(--c-bg-soft); }
.service-card { display: flex; flex-direction: column; }
.service-card .thumb { display: block; aspect-ratio: 16/10; overflow: hidden; }
.service-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.service-card:hover .thumb img { transform: scale(1.05); }
.service-card .body { padding: 26px 28px; }
.service-card h3 { text-transform: uppercase; font-weight: 700; font-size: 1rem; letter-spacing: .04em; color: var(--c-ink); margin-bottom: .5rem; }
.service-card p { color: var(--c-text); font-weight: 300; margin: 0 0 14px; }
.service-card .more { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--c-cyan); display: inline-flex; align-items: center; gap: 8px; }
.grid-3 .service-card { border-right: 1px solid var(--c-border); }
.grid-3 .service-card:last-child { border-right: none; }
@media (max-width: 900px){ .grid-3 .service-card { border-right: none; } }

/* Ikonos kártya (hexagon keret) */
.card { background: #fff; border: 1px solid var(--c-border); padding: 34px 30px; text-align: center; }
.card .ico { width: 84px; height: 84px; margin: 0 auto 20px; display: grid; place-items: center; color: var(--c-cyan); position: relative; }
.card .ico::before { content: ""; position: absolute; inset: 0; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpolygon points='50,3 93,26 93,74 50,97 7,74 7,26' fill='none' stroke='%2329b6d8' stroke-width='4'/%3E%3C/svg%3E") center/contain no-repeat; }
.card h3 { margin-bottom: .5rem; color: var(--c-ink); font-weight: 400; }
.card p { color: var(--c-text); font-weight: 300; margin: 0; }
.section--soft .card { background: #fff; }

/* Egyszerű infó-kártya (keret nélküli hexagon nem kell) */
.plain-card { background: #fff; border: 1px solid var(--c-border); padding: 30px 28px; }
.plain-card h3 { color: var(--c-ink); font-weight: 400; margin-bottom: .5rem; }
.plain-card p { color: var(--c-text); font-weight: 300; margin: 0; }

/* Vizsgálattípus kártyák (munkaköri) */
.class-card { background: #fff; border: 1px solid var(--c-border); padding: 28px 26px; }
.class-card h3 { color: var(--c-ink); font-weight: 600; text-transform: uppercase; font-size: .95rem; letter-spacing: .04em; margin-bottom: .5rem; }
.class-card p { color: var(--c-text); font-weight: 300; margin: 0; }

/* Pipás lista */
.check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.check-list li { position: relative; padding-left: 34px; font-weight: 300; }
.check-list li::before { content: ""; position: absolute; left: 0; top: 3px; width: 20px; height: 20px; background: var(--c-cyan) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center/12px no-repeat; }

/* Hexagon feature band (fotón, fehér) */
.feature-band { position: relative; color: #fff; padding: clamp(60px, 9vw, 96px) 0; background-color: var(--c-navy); background-size: cover; background-position: center; background-attachment: fixed; text-align: center; }
@media (max-width: 820px) { .feature-band { background-attachment: scroll; } }
.feature-band::before { content: ""; position: absolute; inset: 0; background: rgba(20,30,55,.68); }
.feature-band .container { position: relative; z-index: 1; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
@media (max-width: 780px){ .feature-grid { grid-template-columns: 1fr; gap: 40px; } }
.feature-item .hex { width: 96px; height: 96px; margin: 0 auto 18px; display: grid; place-items: center; position: relative; color: #fff; }
.feature-item .hex::before { content: ""; position: absolute; inset: 0; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpolygon points='50,3 93,26 93,74 50,97 7,74 7,26' fill='none' stroke='rgba(255,255,255,0.8)' stroke-width='4'/%3E%3C/svg%3E") center/contain no-repeat; }
.feature-item h3 { color: #fff; font-weight: 300; font-size: 1.3rem; margin-bottom: .4rem; }
.feature-item p { color: rgba(255,255,255,.85); font-weight: 300; margin: 0; }

/* ==========================================================================
   GYIK
   ========================================================================== */
.faq { max-width: 840px; margin: 0 auto; display: grid; gap: 0; border-top: 1px solid var(--c-border); }
.faq details { border-bottom: 1px solid var(--c-border); background: #fff; }
.section--soft .faq details { background: transparent; }
.faq summary { cursor: pointer; font-weight: 600; color: var(--c-ink); padding: 20px 4px; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 14px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.5rem; color: var(--c-cyan); font-weight: 300; flex: none; }
.faq details[open] summary::after { content: "\2013"; }
.faq details > p { margin: 0 4px 20px; color: var(--c-text); font-weight: 300; }

/* ==========================================================================
   CTA sáv
   ========================================================================== */
.cta-band { background: var(--c-cyan); color: #fff; padding: clamp(34px, 5vw, 48px) clamp(28px, 5vw, 56px); display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; }
.cta-band.navy { background: var(--c-navy); }
.cta-band h2 { color: #fff; margin: 0; font-weight: 300; }
.cta-band p { color: rgba(255,255,255,.9); margin: .4rem 0 0; max-width: 560px; font-weight: 300; }

/* ==========================================================================
   Kapcsolat / űrlap / térkép / foglalás
   ========================================================================== */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 34px; align-items: start; }
@media (max-width: 860px){ .contact-grid { grid-template-columns: 1fr; } }
.map-wrap { overflow: hidden; box-shadow: var(--shadow); min-height: 380px; border: 1px solid var(--c-border); }
.map-wrap iframe { width: 100%; height: 100%; min-height: 380px; border: 0; display: block; }
.info-list { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 18px; }
.info-list li { display: flex; gap: 14px; align-items: flex-start; }
.info-list .ico { width: 44px; height: 44px; background: var(--c-cyan); color: #fff; display: grid; place-items: center; flex: none; }
.info-list strong { display: block; color: var(--c-ink); }

.booking-wrap { border: 1px solid var(--c-border); box-shadow: var(--shadow); }
.booking-frame { width: 100%; height: 1100px; border: 0; display: block; }

/* ==========================================================================
   Lábléc
   ========================================================================== */
.site-footer { background: var(--c-navy-dark); color: rgba(255,255,255,.72); padding: 58px 0 26px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
@media (max-width: 760px){ .footer-grid { grid-template-columns: 1fr; gap: 30px; } }
.site-footer h4 { color: #fff; font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; margin-bottom: 18px; padding-bottom: 12px; border-bottom: 1px solid rgba(255,255,255,.15); }
.site-footer a { color: rgba(255,255,255,.72); }
.site-footer a:hover { color: var(--c-cyan); }
.site-footer .brand { color: #fff; margin-bottom: 14px; }
.site-footer .brand > span:last-child { color: #fff; }
.site-footer .brand small { color: rgba(255,255,255,.55); }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer-links a { text-transform: uppercase; font-size: .8rem; letter-spacing: .03em; font-weight: 600; }
.footer-contact p { margin: 0 0 8px; font-weight: 300; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.15); margin-top: 40px; padding-top: 22px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: .82rem; color: rgba(255,255,255,.5); }

/* Segéd */
.center { text-align: center; }
.mt-0 { margin-top: 0; }
.stack > * + * { margin-top: 1rem; }
