/* =========================================================================
   Búzavirág Egészségház — design system
   Plain CSS, custom properties, no framework.
   ========================================================================= */

:root {
  /* Brand — "búzavirág" = cornflower */
  --primary:        #3a57b8;
  --primary-600:    #2f478f;
  --primary-700:    #263a76;
  --primary-100:    #e8edfb;
  --primary-050:    #f3f6fd;

  --accent:         #c98a2f;   /* warm amber, used sparingly */
  --accent-100:     #f7ecd9;

  --ink:            #1b2330;
  --muted:          #5b6575;
  --faint:          #8b94a3;

  --bg:             #f6f8fc;
  --surface:        #ffffff;
  --surface-2:      #eef2f9;
  --line:           #e3e8f1;
  --line-strong:    #cdd5e3;

  --ok:             #2f9e6f;
  --ok-100:         #e3f4ec;

  --shadow-sm: 0 1px 2px rgba(27, 35, 48, .06), 0 1px 3px rgba(27, 35, 48, .05);
  --shadow-md: 0 4px 12px rgba(27, 35, 48, .07), 0 2px 6px rgba(27, 35, 48, .05);
  --shadow-lg: 0 18px 40px rgba(27, 35, 48, .12), 0 6px 14px rgba(27, 35, 48, .06);

  --radius:    14px;
  --radius-sm: 9px;
  --radius-lg: 22px;

  --maxw: 1140px;
  --gap: clamp(1rem, 3vw, 2rem);

  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-head: "Spectral", Georgia, "Times New Roman", serif;
}

/* ------------------------------------------------------------------ reset */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg, picture { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
ul { list-style: none; padding: 0; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -.01em;
  color: var(--ink);
}

:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ---------------------------------------------------------------- layout */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: clamp(1.1rem, 4vw, 2rem);
}

.section { padding-block: clamp(3.2rem, 8vw, 6rem); }
.section--tight { padding-block: clamp(2.4rem, 5vw, 3.6rem); }
.section--alt { background: var(--surface); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: .8rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--primary);
}
.eyebrow::before {
  content: "";
  width: 26px; height: 2px;
  background: var(--primary);
  border-radius: 2px;
}

.section-head { max-width: 640px; margin-bottom: clamp(1.8rem, 4vw, 2.8rem); }
.section-head h2 { font-size: clamp(1.7rem, 4vw, 2.5rem); margin-top: .6rem; }
.section-head p { color: var(--muted); margin-top: .8rem; font-size: 1.04rem; }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .eyebrow { justify-content: center; }

/* ----------------------------------------------------------------- buttons */
.btn {
  --_bg: var(--primary);
  --_fg: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  padding: .85rem 1.5rem;
  background: var(--_bg);
  color: var(--_fg);
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 600;
  font-size: .98rem;
  line-height: 1;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
  box-shadow: var(--shadow-sm);
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn:active { transform: translateY(0); }
.btn--lg { padding: 1.05rem 1.9rem; font-size: 1.05rem; }
.btn--ghost {
  --_bg: transparent; --_fg: var(--primary);
  border-color: var(--line-strong);
  box-shadow: none;
}
.btn--ghost:hover { background: var(--primary-050); box-shadow: none; }
.btn--light { --_bg: #fff; --_fg: var(--primary); }
.btn--block { width: 100%; }

.btn svg { width: 1.05em; height: 1.05em; }

.link-arrow {
  display: inline-flex; align-items: center; gap: .4rem;
  color: var(--primary); font-weight: 600;
}
.link-arrow svg { width: 16px; height: 16px; transition: transform .2s ease; }
.link-arrow:hover svg { transform: translateX(3px); }

/* ------------------------------------------------------------------- header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.82);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, box-shadow .25s ease;
}
.site-header.is-scrolled {
  border-color: var(--line);
  box-shadow: 0 6px 20px rgba(27,35,48,.05);
}
.nav {
  display: flex; align-items: center; gap: 1.5rem;
  height: 72px;
}
.brand { display: flex; align-items: center; gap: .65rem; font-weight: 700; }
.brand__mark { width: 34px; height: 34px; flex: none; }
.brand__text { display: flex; flex-direction: column; line-height: 1.05; }
.brand__text b { font-family: var(--font-head); font-size: 1.12rem; letter-spacing: -.01em; }
.brand__text span { font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); font-weight: 600; }

.nav__links {
  display: flex; align-items: center; gap: .35rem;
  margin-left: auto;
}
.nav__links a {
  padding: .55rem .8rem;
  border-radius: 8px;
  font-weight: 500;
  font-size: .96rem;
  color: var(--muted);
  transition: color .15s ease, background .15s ease;
}
.nav__links a:hover { color: var(--ink); background: var(--surface-2); }
.nav__links a.is-active { color: var(--primary); }

.nav__cta { margin-left: .4rem; }
/* The CTA is a button: keep its own colours, not the muted nav-link colour. */
.nav .nav__cta a.btn { color: #fff; }
.nav .nav__cta a.btn:hover { color: #fff; background: var(--primary-600); }

.nav__toggle {
  display: none;
  margin-left: auto;
  width: 44px; height: 44px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  align-items: center; justify-content: center;
}
.nav__toggle span, .nav__toggle span::before, .nav__toggle span::after {
  content: ""; display: block;
  width: 20px; height: 2px; background: var(--ink);
  border-radius: 2px; transition: transform .25s ease, opacity .2s ease;
}
.nav__toggle span::before { transform: translateY(-6px); }
.nav__toggle span::after  { transform: translateY(4px); }
.nav.is-open .nav__toggle span { background: transparent; }
.nav.is-open .nav__toggle span::before { transform: rotate(45deg); }
.nav.is-open .nav__toggle span::after  { transform: rotate(-45deg); }

/* ------------------------------------------------------------------- hero */
.hero {
  position: relative;
  padding-block: clamp(3rem, 7vw, 5.5rem);
  overflow: hidden;
}
.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.hero__pill {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .4rem .4rem .4rem .9rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: .85rem; color: var(--muted);
  box-shadow: var(--shadow-sm);
}
.hero__pill b { color: var(--primary); }
.hero__pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 3px var(--ok-100); }

.hero h1 {
  font-size: clamp(2.3rem, 6vw, 3.7rem);
  margin-top: 1.2rem;
  line-height: 1.06;
}
.hero h1 em { font-style: italic; color: var(--primary); }
.hero__lead {
  margin-top: 1.3rem;
  font-size: clamp(1.05rem, 2.2vw, 1.2rem);
  color: var(--muted);
  max-width: 30em;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }
.hero__trust { display: flex; flex-wrap: wrap; gap: 1.6rem; margin-top: 2.4rem; }
.hero__trust div { display: flex; flex-direction: column; }
.hero__trust b { font-family: var(--font-head); font-size: 1.7rem; color: var(--ink); line-height: 1; }
.hero__trust span { font-size: .82rem; color: var(--faint); margin-top: .3rem; }

/* hero visual */
.hero__visual { position: relative; }
.hero__card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 1.4rem;
}
.hero__card-top { display: flex; align-items: center; gap: .8rem; padding-bottom: 1rem; border-bottom: 1px solid var(--line); }
.hero__card-top .ico { width: 42px; height: 42px; border-radius: 12px; background: var(--primary-100); color: var(--primary); display: grid; place-items: center; }
.hero__card-top .ico svg { width: 22px; height: 22px; }
.hero__card-top b { display: block; }
.hero__card-top small { color: var(--faint); }
.hero__slots { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; margin-top: 1rem; }
.hero__slot {
  text-align: center; padding: .6rem .2rem;
  border: 1px solid var(--line); border-radius: 10px;
  font-size: .9rem; font-weight: 600; color: var(--muted);
  transition: .15s ease;
}
.hero__slot.is-free { color: var(--primary); border-color: var(--primary-100); background: var(--primary-050); }
.hero__slot.is-taken { color: var(--faint); text-decoration: line-through; opacity: .6; }
.hero__card .btn { margin-top: 1rem; }
.hero__blob {
  position: absolute; inset: auto -12% -18% auto;
  width: 60%; aspect-ratio: 1; z-index: -1;
  background: radial-gradient(circle at 30% 30%, var(--primary-100), transparent 70%);
  filter: blur(8px);
}
.hero::before {
  content:""; position:absolute; inset:0; z-index:-1;
  background:
    radial-gradient(900px 380px at 88% -8%, var(--primary-050), transparent 70%),
    radial-gradient(700px 320px at -5% 10%, var(--accent-100), transparent 65%);
  opacity: .8;
}

/* ------------------------------------------------------------------- cards */
.grid { display: grid; gap: 1.1rem; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .2s ease, border-color .2s ease;
}
.card--link:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--primary-100); }

/* service card */
.svc {
  display: flex; flex-direction: column; height: 100%;
}
.svc__ico {
  width: 50px; height: 50px; border-radius: 13px;
  background: var(--primary-050); color: var(--primary);
  display: grid; place-items: center; margin-bottom: 1rem;
}
.svc__ico svg { width: 26px; height: 26px; }
.svc h3 { font-size: 1.18rem; }
.svc p { color: var(--muted); font-size: .96rem; margin-top: .45rem; flex: 1; }
.svc .link-arrow { margin-top: 1rem; font-size: .92rem; }

/* feature / value */
.feature { display: flex; gap: 1rem; align-items: flex-start; }
.feature__ico {
  flex: none; width: 46px; height: 46px; border-radius: 12px;
  display: grid; place-items: center;
  background: var(--accent-100); color: var(--accent);
}
.feature__ico svg { width: 24px; height: 24px; }
.feature h3 { font-size: 1.1rem; }
.feature p { color: var(--muted); font-size: .95rem; margin-top: .3rem; }

/* steps */
.steps { counter-reset: step; display: grid; gap: 1.1rem; }
.step {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem 1.5rem 1.5rem 4.4rem;
  box-shadow: var(--shadow-sm);
}
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 1.2rem; top: 1.3rem;
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--primary); color: #fff;
  font-family: var(--font-head); font-weight: 600;
  display: grid; place-items: center;
}
.step h3 { font-size: 1.12rem; }
.step p { color: var(--muted); font-size: .95rem; margin-top: .3rem; }

/* ----------------------------------------------------------------- doctors */
.doc {
  display: flex; flex-direction: column; height: 100%;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .2s ease;
}
.doc:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.doc__avatar {
  aspect-ratio: 4/3; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--primary-050), var(--primary-100));
  color: var(--primary);
}
.doc__avatar--green  { background: linear-gradient(135deg,#f0fdf4,#dcfce7); color:#16a34a; }
.doc__avatar--orange { background: linear-gradient(135deg,#fff7ed,#ffedd5); color:#ea580c; }
.doc__avatar--violet { background: linear-gradient(135deg,#fdf4ff,#fae8ff); color:#9333ea; }
.doc__avatar--teal   { background: linear-gradient(135deg,#f0fdfa,#ccfbf1); color:#0d9488; }
.doc__avatar span {
  font-family: var(--font-head); font-weight: 600; font-size: 2rem;
  width: 76px; height: 76px; border-radius: 50%;
  background: var(--surface); display: grid; place-items: center;
  box-shadow: var(--shadow-sm);
}
.doc__body { padding: 1.2rem 1.3rem 1.4rem; display: flex; flex-direction: column; flex: 1; }
.doc__body h3 { font-size: 1.12rem; }
.doc__tag {
  align-self: flex-start; margin-top: .55rem;
  font-size: .78rem; font-weight: 600; color: var(--primary);
  background: var(--primary-050); border: 1px solid var(--primary-100);
  padding: .25rem .65rem; border-radius: 999px;
}
.doc__loc { margin-top: .8rem; color: var(--faint); font-size: .85rem; display: flex; align-items: center; gap: .35rem; }
.doc__loc svg { width: 14px; height: 14px; }
.doc__body .btn { margin-top: 1.1rem; }

/* ---- doctor carousel (infinite marquee) ---- */
.doc-carousel { position: relative; overflow: hidden; }
.doc-carousel::before,
.doc-carousel::after {
  content: ''; position: absolute; top: 0; bottom: 0; width: clamp(40px,6vw,90px);
  z-index: 2; pointer-events: none;
}
.doc-carousel::before { left:  0; background: linear-gradient(to right, var(--bg), transparent); }
.doc-carousel::after  { right: 0; background: linear-gradient(to left,  var(--bg), transparent); }
.doc-track {
  display: flex; gap: 1.2rem; width: max-content;
  will-change: transform;
}
.doc-track .doc { flex: 0 0 260px; }
@media (max-width: 900px)  { .doc-track .doc { flex-basis: 230px; } }
@media (max-width: 600px)  { .doc-track .doc { flex-basis: 200px; } }

/* badge / chips */
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip {
  font-size: .82rem; font-weight: 500; color: var(--muted);
  background: var(--surface); border: 1px solid var(--line);
  padding: .4rem .8rem; border-radius: 999px;
}

/* ----------------------------------------------------------------- page head */
.page-hero {
  background:
    radial-gradient(700px 300px at 85% -20%, var(--primary-050), transparent 70%),
    var(--surface);
  border-bottom: 1px solid var(--line);
  padding-block: clamp(2.6rem, 6vw, 4rem);
}
.breadcrumb { font-size: .85rem; color: var(--faint); margin-bottom: .8rem; }
.breadcrumb a:hover { color: var(--primary); }
.page-hero h1 { font-size: clamp(2rem, 5vw, 3rem); }
.page-hero p { color: var(--muted); margin-top: .8rem; max-width: 44em; font-size: 1.08rem; }

/* ----------------------------------------------------------------- contact */
.info-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}
.info-row { display: flex; gap: .85rem; padding: .85rem 0; border-bottom: 1px solid var(--line); }
.info-row:last-child { border-bottom: 0; }
.info-row .ico { flex: none; width: 40px; height: 40px; border-radius: 10px; background: var(--primary-050); color: var(--primary); display: grid; place-items: center; }
.info-row .ico svg { width: 20px; height: 20px; }
.info-row b { display: block; font-size: .95rem; }
.info-row a, .info-row span { color: var(--muted); font-size: .95rem; }
.info-row a:hover { color: var(--primary); }

.map-frame {
  border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-sm); height: 100%; min-height: 320px;
}
.map-frame iframe { width: 100%; height: 100%; border: 0; display: block; }

/* hours table */
.hours { width: 100%; border-collapse: collapse; }
.hours td { padding: .55rem 0; border-bottom: 1px solid var(--line); font-size: .95rem; }
.hours tr:last-child td { border-bottom: 0; }
.hours td:last-child { text-align: right; color: var(--muted); font-variant-numeric: tabular-nums; }

/* ----------------------------------------------------------------- CTA band */
.cta-band {
  background: linear-gradient(135deg, var(--primary-700), var(--primary));
  color: #fff; border-radius: var(--radius-lg);
  padding: clamp(2rem, 5vw, 3.2rem);
  position: relative; overflow: hidden;
}
.cta-band::after {
  content:""; position:absolute; right:-60px; top:-60px;
  width: 280px; height: 280px; border-radius: 50%;
  background: rgba(255,255,255,.07);
}
.cta-band h2 { color: #fff; font-size: clamp(1.6rem, 4vw, 2.3rem); max-width: 16em; }
.cta-band p { color: rgba(255,255,255,.82); margin-top: .8rem; max-width: 34em; position: relative; }
.cta-band .hero__actions { margin-top: 1.8rem; position: relative; }

/* ------------------------------------------------------------------- footer */
.site-footer {
  background: var(--ink); color: #c7cedb;
  padding-block: clamp(2.6rem, 6vw, 3.6rem) 1.6rem;
  margin-top: auto;
}
.footer__grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 2rem;
}
.site-footer .brand__text b { color: #fff; }
.site-footer .brand__text span { color: #7b869a; }
.footer__about { margin-top: 1rem; font-size: .92rem; color: #97a1b3; max-width: 30ch; }
.footer__col h4 { color: #fff; font-family: var(--font-body); font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 1rem; }
.footer__col a, .footer__col li { font-size: .94rem; color: #aab3c4; padding: .28rem 0; display: block; }
.footer__col a:hover { color: #fff; }
.footer__bottom {
  margin-top: 2.4rem; padding-top: 1.4rem; border-top: 1px solid rgba(255,255,255,.1);
  display: flex; flex-wrap: wrap; gap: .8rem; justify-content: space-between;
  font-size: .85rem; color: #7b869a;
}
.footer__grants { display: flex; gap: 1rem; flex-wrap: wrap; font-size: .78rem; color: #7b869a; }

/* ------------------------------------------------------------------- utils */
.muted { color: var(--muted); }
.center { text-align: center; }
.mt-1 { margin-top: .5rem; } .mt-2 { margin-top: 1rem; } .mt-3 { margin-top: 1.6rem; }
.stack > * + * { margin-top: 1rem; }
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-in { opacity: 1; transform: none; }

/* ------------------------------------------------------------------ responsive */
@media (max-width: 980px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__visual { order: -1; max-width: 460px; }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  body { font-size: 16px; }
  .nav__links {
    position: fixed; inset: 72px 0 auto 0;
    flex-direction: column; align-items: stretch;
    background: var(--surface); border-bottom: 1px solid var(--line);
    padding: 1rem clamp(1.1rem, 4vw, 2rem) 1.4rem;
    box-shadow: var(--shadow-lg);
    transform: translateY(-12px); opacity: 0; pointer-events: none;
    transition: transform .22s ease, opacity .22s ease;
  }
  .nav.is-open .nav__links { transform: none; opacity: 1; pointer-events: auto; }
  .nav__links a { padding: .8rem .6rem; font-size: 1.02rem; border-radius: 10px; }
  .nav__cta { margin: .4rem 0 0; }
  .nav__cta .btn { width: 100%; }
  .nav__toggle { display: inline-flex; }

  .grid--3, .grid--4, .grid--2 { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; gap: 1.6rem; }
  .hero__trust { gap: 1.2rem; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}
