/* Halmy Telepi Patika — tokenek (a logó két zöldjéből levezetve) */
@font-face { font-family: "Fraunces"; src: url(/assets/fonts/fraunces-latin.woff2) format("woff2"); font-weight: 500 700; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Fraunces"; src: url(/assets/fonts/fraunces-latin-ext.woff2) format("woff2"); font-weight: 500 700; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Nunito Sans"; src: url(/assets/fonts/nunitosans-latin.woff2) format("woff2"); font-weight: 400 800; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Nunito Sans"; src: url(/assets/fonts/nunitosans-latin-ext.woff2) format("woff2"); font-weight: 400 800; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  /* felületek */
  --paper: #f8f7f0;
  --surface: #ffffff;
  --tint: #eef3dc;
  --line: #dfe3cf;
  /* szöveg */
  --ink: #1e2a12;
  --ink-soft: #4a5640;
  /* márka */
  --olive: #799b28;      /* a logó sötétebb zöldje — csak díszítés, nagy felület */
  --lime: #a2c248;       /* a logó világos zöldje — csak díszítés */
  --green-text: #4f6b17; /* olvasható zöld szöveghez */
  /* az EGYETLEN konverziós szín: a hívás */
  --act: #2f4a12;
  --act-hover: #24390d;
  --act-ink: #ffffff;
  /* állapot */
  --open: #3f7d20;
  --closed: #a3412b;

  --f-head: "Fraunces", Georgia, "Times New Roman", serif;
  --f-body: "Nunito Sans", "Segoe UI", system-ui, -apple-system, sans-serif;

  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px; --s8: 64px; --s9: 96px;
  --r-sm: 10px; --r-md: 16px; --r-lg: 24px;
  --shadow: 0 1px 2px rgba(30, 42, 18, .06), 0 12px 32px -12px rgba(30, 42, 18, .18);

  --t-fast: 160ms; --t-mid: 320ms; --ease: cubic-bezier(.2, .7, .2, 1);
  --wrap: 1160px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--f-body); font-size: 17px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--green-text); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--act); }
:focus-visible { outline: 3px solid var(--olive); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--f-head); font-weight: 600; line-height: 1.12; margin: 0; color: var(--ink); letter-spacing: -.01em; }
h2 { font-size: clamp(30px, 3.6vw, 44px); }
h3 { font-size: 22px; }
p { margin: 0 0 var(--s4); }
.wrap { width: min(var(--wrap), 100% - 40px); margin-inline: auto; }
.narrow { width: min(820px, 100% - 40px); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 50; background: var(--surface); padding: 8px 12px; border-radius: 8px; }
.skip:focus { left: 12px; }
.muted { color: var(--ink-soft); }

/* gombok — egy kitöltött gomb: a hívás */
.btn {
  display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 24px;
  border-radius: 999px; font-weight: 800; font-size: 17px; text-decoration: none;
  transition: background var(--t-fast) var(--ease), transform var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
}
.btn svg { width: 20px; height: 20px; fill: currentColor; flex: none; }
.btn-call { background: var(--act); color: var(--act-ink); box-shadow: 0 8px 20px -10px rgba(47, 74, 18, .7); }
.btn-call:hover { background: var(--act-hover); color: var(--act-ink); transform: translateY(-1px); }
.btn-sm { min-height: 44px; padding: 0 18px; font-size: 15px; }
.btn-ghost { border: 1.5px solid var(--act); color: var(--act); background: transparent; }
.btn-ghost:hover { background: var(--tint); }
.link-arrow { font-weight: 800; color: var(--act); text-decoration: none; display: inline-flex; align-items: center; gap: 8px; min-height: 48px; }
.link-arrow::after { content: "→"; transition: transform var(--t-fast) var(--ease); }
.link-arrow:hover::after { transform: translateX(4px); }

/* fejléc */
.site-head { position: sticky; top: 0; z-index: 20; background: rgba(248, 247, 240, .92); backdrop-filter: saturate(1.2) blur(8px); border-bottom: 1px solid transparent; transition: border-color var(--t-mid); }
.site-head.scrolled { border-bottom-color: var(--line); }
.head-row { display: flex; align-items: center; gap: var(--s5); min-height: 76px; }
.brand img { height: 46px; width: auto; mix-blend-mode: multiply; }
.nav { display: flex; gap: var(--s5); margin-left: auto; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 700; font-size: 15px; padding: 10px 2px; border-bottom: 2px solid transparent; }
.nav a:hover { border-bottom-color: var(--lime); color: var(--ink); }

/* hero */
.hero { position: relative; overflow: hidden; padding: var(--s8) 0 var(--s9);
  background:
    radial-gradient(60% 70% at 88% 30%, rgba(162, 194, 72, .22), transparent 70%),
    radial-gradient(40% 50% at 10% 100%, rgba(121, 155, 40, .10), transparent 70%),
    var(--paper);
}
.hero-mark { position: absolute; right: -90px; top: -60px; width: 560px; height: 560px; color: var(--olive); opacity: .10; pointer-events: none; }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: var(--s8); align-items: center; }
.place { font-weight: 700; color: var(--green-text); margin-bottom: var(--s4); font-size: 16px; }
.hero h1 { font-size: clamp(44px, 6.4vw, 84px); line-height: 1.02; letter-spacing: -.02em; margin-bottom: var(--s5); font-variation-settings: "opsz" 144; }
.lead { font-size: clamp(19px, 1.7vw, 22px); color: var(--ink-soft); max-width: 34ch; margin-bottom: var(--s6); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s4) var(--s6); }

/* nyitvatartási tábla — mint az ajtón lógó tábla */
.doorsign { position: relative; background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--shadow); padding: var(--s6) var(--s6) var(--s5); border: 1px solid var(--line); }
.doorsign-hang { position: absolute; top: -26px; left: 50%; width: 120px; height: 30px; transform: translateX(-50%); }
.doorsign-hang::before, .doorsign-hang::after { content: ""; position: absolute; bottom: 0; width: 2px; height: 34px; background: var(--ink-soft); opacity: .35; transform-origin: bottom; }
.doorsign-hang::before { left: 14px; transform: rotate(28deg); }
.doorsign-hang::after { right: 14px; transform: rotate(-28deg); }
.doorsign::before { content: ""; position: absolute; top: -32px; left: 50%; width: 12px; height: 12px; margin-left: -6px; border-radius: 50%; background: var(--paper); border: 2px solid var(--ink-soft); opacity: .5; }
.doorsign-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--s2) var(--s4); padding-bottom: var(--s4); border-bottom: 2px solid var(--ink); margin-bottom: var(--s3); }
.doorsign h2 { font-size: 28px; }
.status { margin: 0; display: inline-flex; align-items: center; gap: 8px; font-weight: 800; font-size: 15px; color: var(--ink-soft); }
.status .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--ink-soft); flex: none; }
.status.is-open { color: var(--open); }
.status.is-open .dot { background: var(--open); box-shadow: 0 0 0 0 rgba(63, 125, 32, .5); animation: pulse 2.4s var(--ease) infinite; }
.status.is-closed { color: var(--closed); }
.status.is-closed .dot { background: var(--closed); }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(63, 125, 32, .45); } 70% { box-shadow: 0 0 0 10px rgba(63, 125, 32, 0); } 100% { box-shadow: 0 0 0 0 rgba(63, 125, 32, 0); } }
.hours { width: 100%; border-collapse: collapse; font-size: 17px; }
.hours th, .hours td { padding: 9px 10px; text-align: left; font-weight: 600; }
.hours td { text-align: right; font-variant-numeric: tabular-nums; }
.hours tr.closed td { color: var(--ink-soft); font-weight: 600; }
.hours tr.today { background: var(--tint); }
.hours tr.today th, .hours tr.today td { font-weight: 800; color: var(--ink); }
.hours tr.today th { box-shadow: inset 4px 0 0 var(--lime); border-radius: 6px 0 0 6px; }
.hours tr.today td { border-radius: 0 6px 6px 0; }
.doorsign-note { margin: var(--s4) 0 0; font-size: 15px; color: var(--ink-soft); line-height: 1.5; }

/* szekciók */
.sec { padding: var(--s9) 0; }
.sec-help { background: var(--surface); }
.split { display: grid; grid-template-columns: .8fr 1.2fr; gap: var(--s8); align-items: start; }
.split-head { position: sticky; top: 110px; }
.split-head h2 { margin-bottom: var(--s4); }
.split-head p { color: var(--ink-soft); font-size: 19px; max-width: 30ch; }
.help-list { list-style: none; margin: 0; padding: 0; counter-reset: h; }
.help-list li { counter-increment: h; position: relative; padding: var(--s5) 0 var(--s5) 64px; border-top: 1px solid var(--line); }
.help-list li:last-child { border-bottom: 1px solid var(--line); }
.help-list li::before { content: counter(h, decimal-leading-zero); position: absolute; left: 0; top: var(--s5); font-family: var(--f-head); font-size: 22px; font-weight: 600; color: var(--olive); line-height: 1.3; }
.help-list h3 { margin-bottom: 6px; }
.help-list p { margin: 0; color: var(--ink-soft); max-width: 58ch; }

.about-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: var(--s8); align-items: center; }
.about-text h2 { margin-bottom: var(--s5); }
.about-text p { max-width: 60ch; }
.sign { font-family: var(--f-head); font-size: 22px; font-weight: 600; margin-top: var(--s5); line-height: 1.3; }
.sign span { font-family: var(--f-body); font-size: 15px; font-weight: 700; color: var(--green-text); }
.about-quote { margin: 0; position: relative; padding: var(--s7) var(--s6) var(--s6); background: var(--tint); border-radius: var(--r-lg); }
.about-quote::before { content: ""; position: absolute; top: -18px; left: var(--s6); width: 44px; height: 44px; background: no-repeat center/contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'%3E%3Cpath d='M58 150c-6-44 22-78 76-84-6 50-34 82-76 84z' fill='%23a2c248'/%3E%3Cpath d='M62 146c18-26 38-46 64-70' fill='none' stroke='%23799b28' stroke-width='8' stroke-linecap='round'/%3E%3C/svg%3E"); }
.about-quote blockquote { margin: 0; }
.about-quote blockquote p { font-family: var(--f-head); font-size: clamp(22px, 2.2vw, 27px); line-height: 1.35; font-weight: 500; margin: 0 0 var(--s4); color: var(--ink); }
.about-quote figcaption { font-size: 15px; font-weight: 700; color: var(--green-text); }
.facts { list-style: none; margin: var(--s8) 0 0; padding: var(--s6) 0 0; border-top: 2px solid var(--ink); display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s5); }
.facts strong { display: block; font-family: var(--f-head); font-size: clamp(26px, 2.6vw, 34px); font-weight: 600; line-height: 1.1; color: var(--ink); }
.facts span { display: block; color: var(--ink-soft); font-size: 15px; margin-top: 4px; }

.sec-contact { background: var(--surface); }
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: var(--s8); align-items: stretch; }
.contact-info h2 { margin-bottom: var(--s5); }
.contact-list { margin: 0 0 var(--s6); }
.contact-list > div { display: grid; grid-template-columns: 130px 1fr; gap: var(--s4); padding: var(--s4) 0; border-top: 1px solid var(--line); }
.contact-list > div:last-child { border-bottom: 1px solid var(--line); }
.contact-list dt { font-weight: 800; color: var(--green-text); font-size: 15px; padding-top: 2px; }
.contact-list dd { margin: 0; font-weight: 600; }
.contact-list dd a { font-weight: 800; }
.contact-list .muted { font-weight: 400; font-size: 15px; }
.map { display: flex; flex-direction: column; min-height: 420px; }
.map iframe { flex: 1; width: 100%; min-height: 380px; border: 0; border-radius: var(--r-lg); background: var(--tint); filter: saturate(.85); }
.map-frame { position: relative; flex: 1; display: flex; }
.map-frame iframe { pointer-events: none; }
.map-frame.active iframe { pointer-events: auto; }
.map-cover { position: absolute; inset: 0; display: flex; align-items: flex-end; justify-content: center; padding: var(--s4); border: 0; background: transparent; cursor: pointer; border-radius: var(--r-lg); }
.map-cover span { background: var(--surface); color: var(--ink); font: 700 15px/1.2 var(--f-body); padding: 10px 16px; border-radius: 999px; box-shadow: var(--shadow); }
.map-frame.active .map-cover { display: none; }
.map-credit { font-size: 13px; color: var(--ink-soft); margin: var(--s2) 0 0; }

.sec-faq h2 { margin-bottom: var(--s6); }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: var(--s5) 48px var(--s5) 0; font-family: var(--f-head); font-size: 21px; font-weight: 600; position: relative; line-height: 1.3; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 8px; top: 50%; width: 14px; height: 14px; margin-top: -9px; border-right: 2.5px solid var(--olive); border-bottom: 2.5px solid var(--olive); transform: rotate(45deg); transition: transform var(--t-mid) var(--ease); }
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq details p { margin: 0 0 var(--s5); color: var(--ink-soft); max-width: 64ch; }

/* lábléc */
.site-foot { background: #24360f; color: #e9eedd; padding: var(--s8) 0 var(--s6); font-size: 15px; }
.site-foot a { color: #ffffff; }
.foot-grid { display: grid; grid-template-columns: 1fr 1.2fr 1fr; gap: var(--s7); }
.foot-name { font-family: var(--f-head); font-size: 24px; font-weight: 600; color: #ffffff; margin-bottom: var(--s3); }
.foot-h { font-weight: 800; color: #ffffff; margin-bottom: var(--s2); }
.foot-legal p { color: #cfd8bd; }
.foot-bottom { border-top: 1px solid rgba(255, 255, 255, .15); margin-top: var(--s6); padding-top: var(--s4); color: #b9c4a4; }
.foot-bottom p { margin: 0; }

/* mobil gyorssáv */
.mbar { display: none; }

/* megjelenés görgetéskor (csak ha a mozgás engedélyezett) */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity 560ms var(--ease), transform 560ms var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.doorsign.reveal { transform: translateY(18px) rotate(-1.2deg); }
.doorsign.reveal.in { transform: rotate(0); }

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

@media (max-width: 1020px) {
  .nav { display: none; }
  .head-row { justify-content: space-between; }
  .hero-grid, .split, .about-grid, .contact-grid { grid-template-columns: 1fr; gap: var(--s7); }
  .split-head { position: static; }
  .facts { grid-template-columns: repeat(2, 1fr); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .doorsign { max-width: 520px; }
}

@media (max-width: 640px) {
  body { font-size: 17px; padding-bottom: 76px; }
  .head-row { min-height: 64px; }
  .brand img { height: 38px; }
  .site-head .btn-sm { display: none; }
  .hero { padding: var(--s6) 0 var(--s7); }
  .hero-mark { width: 340px; height: 340px; right: -120px; top: -40px; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .doorsign { padding: var(--s5) var(--s4) var(--s4); }
  .hours th, .hours td { padding: 8px 8px; }
  .sec { padding: var(--s8) 0; }
  .help-list li { padding-left: 48px; }
  .contact-list > div { grid-template-columns: 1fr; gap: 2px; }
  .map, .map iframe { min-height: 300px; }
  .facts { gap: var(--s5) var(--s4); }
  .foot-grid { grid-template-columns: 1fr; gap: var(--s5); }
  .mbar { display: grid; grid-template-columns: 1.4fr 1fr; gap: 8px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: rgba(248, 247, 240, .96); border-top: 1px solid var(--line); backdrop-filter: blur(8px); transform: translateY(110%); transition: transform var(--t-mid) var(--ease); }
  .mbar.show { transform: none; }
  .mbar a { display: flex; align-items: center; justify-content: center; min-height: 50px; border-radius: 999px; font-weight: 800; text-decoration: none; font-size: 17px; }
  .mbar-call { background: var(--act); color: var(--act-ink); }
  .mbar-route { border: 1.5px solid var(--act); color: var(--act); }
}
