/* fulopcsenge.hu — shared design system
   Tokens + chrome (header/footer/cookie) + interactive utility classes.
   Page-level layout stays inline in the page sources (1:1 with the
   design handoff); everything hover/state-driven lives here. */

:root {
  /* Accent: warm terracotta (softened from the old fire red #DB2C2C) */
  --red: #a8583a;
  --red-dark: #7f4128;
  --ink: #222;
  --body: #444;
  --muted: #666;
  --meta: #8a927f;
  --ph: #9aa192;
  --paper: #f6f3ec;
  --sage: #e9efe0;
  --bg-soft: #f7f7f7;
  --bg-green: #f0f4ec;
  --line: #e7eae2;
  --line-2: #e0e3da;
  --line-3: #d8dcd2;
  --green-1: #cdd6c4;
  --green-2: #9db08c;
  --green-3: #6b7f5e;
  --green-4: #43503a;
  --footer-bg: #333;
  --caveat: 'Caveat', cursive;
  --sans: 'Open Sans', sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; } /* class display rules must not resurrect hidden elements (cookie bar, to-top) */
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--sans); color: var(--body); background: var(--paper); }
::selection { background: var(--red); color: #fff; }
a { color: var(--red); text-decoration: none; }
a:hover { color: var(--red-dark); }
img { border: 0; }

.img-cover { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---------- Shared keyframes ---------- */
@keyframes pcFadeUp { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes pcCue { 0% { transform: translateY(-16px); opacity: 0; } 35% { opacity: 1; } 100% { transform: translateY(20px); opacity: 0; } }
@keyframes pcFloat { to { transform: translateY(-14px) rotate(4deg); } }
@keyframes pcSpin { to { transform: rotate(360deg); } }
@keyframes pcPulse { 0%, 100% { box-shadow: 0 12px 34px rgba(0,0,0,.3); } 50% { box-shadow: 0 16px 48px rgba(168,88,58,.45); } }
@keyframes pcDrift { from { transform: rotate(-5deg) translateX(0); } to { transform: rotate(-5deg) translateX(-60px); } }
@keyframes pcDrawX { to { transform: scaleX(1); } }

/* ---------- Design-system section patterns (DESIGN.md) ---------- */
/* Dark ink-green band with corner light — text-page heroes and closing CTA bands */
.hero-dark { position: relative; overflow: hidden; color: #fff;
  background: radial-gradient(130% 150% at 88% -20%, rgba(124,150,98,.5) 0%, rgba(124,150,98,0) 46%),
              linear-gradient(160deg, #212a19 0%, #33422a 58%, #4d6040 100%); }
.corner-light { position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse at 80% 10%, rgba(222,236,196,.16), transparent 55%); }
/* Giant Caveat watermark word — light version on dark bands */
.wm-light { position: absolute; right: -1%; bottom: -16%; font-family: var(--caveat); font-weight: 700;
  font-size: clamp(120px,19vw,250px); line-height: 1; color: rgba(255,255,255,.075); white-space: nowrap;
  transform: rotate(-5deg); animation: pcDrift 30s ease-in-out infinite alternate; pointer-events: none; user-select: none; }
/* Outline watermark behind prose on paper */
.wm-outline { position: absolute; top: -10px; right: -1%; font-family: var(--caveat); font-weight: 700;
  font-size: clamp(90px,13vw,170px); line-height: 1; color: transparent; -webkit-text-stroke: 1.2px rgba(44,54,35,.14);
  white-space: nowrap; animation: pcDrift 34s ease-in-out infinite alternate; pointer-events: none; user-select: none; }
/* Floating outline leaf decor on dark bands */
.leaf-float { position: absolute; animation: pcFloat 9s ease-in-out infinite alternate; pointer-events: none; }
/* Curved section boundary SVG (fill = neighbor section color, 4px overhang) */
.curve { position: absolute; left: -2px; width: calc(100% + 4px); height: clamp(22px,3.9vw,58px); display: block; pointer-events: none; }
.curve--b { bottom: -4px; z-index: 3; }
.curve--t { top: -4px; }

/* Handwritten service-word links (replaces the old marquee strip) */
.word-link { display: inline-block; position: relative; font-family: var(--caveat); font-weight: 600;
  font-size: clamp(30px,4vw,44px); line-height: 1.15; color: var(--green-4); white-space: nowrap;
  transition: color .3s ease, transform .3s ease; }
.word-link::after { content: ""; position: absolute; left: 2%; bottom: 4px; width: 96%; height: 2px;
  border-radius: 2px; background: var(--red); transform: scaleX(0); transform-origin: 0 50%;
  transition: transform .35s cubic-bezier(.22,.61,.36,1); }
.word-link:hover { color: var(--red); transform: rotate(-1.2deg); }
.word-link:hover::after { transform: scaleX(1); }
.word-sep { color: var(--green-1); font-size: 15px; user-select: none; }
@media (max-width: 640px) { .word-sep { display: none; } } /* wrapped lines would strand the separators */

/* Konzultációk leaf-tile strip (the old site's leaf tiles, modernized).
   Full-bleed 4-up strip; centered handwritten name; on hover the photo zooms
   softly, the shade lifts and the description + link hint float in. On
   touch/narrow layouts the description is always visible (no hover there). */
.leaf-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
@media (max-width: 1020px) { .leaf-strip { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .leaf-strip { grid-template-columns: 1fr; } }
.leaf-tile { position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center;
  min-height: clamp(320px, 44vh, 520px); color: #fff; text-align: center; }
.leaf-tile .img-cover { transition: transform .8s cubic-bezier(.22,.61,.36,1); }
.leaf-tile:hover .img-cover, .leaf-tile:focus-visible .img-cover { transform: scale(1.06); }
.leaf-shade { position: absolute; inset: 0; background: rgba(24,30,19,.38); transition: background .5s ease; pointer-events: none; }
.leaf-tile:hover .leaf-shade, .leaf-tile:focus-visible .leaf-shade { background: rgba(24,30,19,.22); }
.leaf-body { position: relative; z-index: 2; padding: 34px 26px; max-width: 36ch; }
.leaf-tile h2 { margin: 0; font-family: var(--caveat); font-weight: 600; font-size: clamp(34px, 3.4vw, 46px);
  line-height: 1.05; color: #fff; text-shadow: 0 2px 22px rgba(0,0,0,.45); }
.leaf-desc { margin: 12px auto 0; font-size: 13.5px; line-height: 1.7; color: rgba(255,255,255,.94); text-shadow: 0 1px 14px rgba(0,0,0,.5); }
.leaf-more { display: inline-block; margin-top: 14px; font-size: 13px; font-weight: 600; letter-spacing: .06em;
  color: #fff; border-bottom: 1.5px solid rgba(255,255,255,.75); padding-bottom: 2px; }
@media (hover: hover) and (min-width: 561px) {
  .leaf-desc, .leaf-more { opacity: 0; transform: translateY(10px);
    transition: opacity .45s ease, transform .45s cubic-bezier(.22,.61,.36,1); }
  .leaf-more { transition-delay: .06s; }
  .leaf-tile:hover .leaf-desc, .leaf-tile:focus-visible .leaf-desc,
  .leaf-tile:hover .leaf-more, .leaf-tile:focus-visible .leaf-more { opacity: 1; transform: none; }
}

/* Lenis smooth scrolling (see site.js) */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }

/* ---------- Skip link ---------- */
.skip-link { position: fixed; left: 12px; top: -60px; z-index: 1000; background: #fff; color: var(--ink); padding: 10px 18px; border-radius: 10px; box-shadow: 0 8px 30px rgba(0,0,0,.2); transition: top .2s; }
.skip-link:focus { top: 12px; }

/* ---------- Header ---------- */
.header-bar { position: fixed; top: 0; left: 0; right: 0; z-index: 950; background: rgba(250,247,240,.97); box-shadow: 0 2px 20px rgba(34,40,30,.09); transition: background .3s ease, box-shadow .3s ease; }
.header-inner { max-width: 1200px; margin: 0 auto; padding: 0 24px; height: 86px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.header-spacer { height: 86px; }
.site-header[data-header-overlay="1"] .header-spacer { display: none; }
.site-header[data-header-overlay="1"]:not(.is-scrolled):not(.menu-open) .header-bar { background: transparent; box-shadow: none; }

.logo { font-family: var(--caveat); font-size: 31px; font-weight: 700; color: var(--ink); display: flex; flex-direction: column; line-height: 1; transition: color .25s; }
.logo:hover { color: var(--ink); }
.logo-sub { font-family: var(--sans); font-size: 10px; font-weight: 400; letter-spacing: .22em; text-transform: uppercase; margin-top: 5px; color: var(--meta); }

.main-nav { display: flex; align-items: center; gap: 26px; }
.nav-item { position: relative; }
.navlink { color: var(--ink); font-size: 15px; font-weight: 600; letter-spacing: .01em; padding: 6px 0; border-bottom: 2px solid transparent; transition: color .25s; }
.navlink:hover { color: var(--red); }
.navlink.is-active { color: var(--red); font-weight: 700; border-bottom-color: var(--red); }
.dd-caret { font-size: 9px; position: relative; top: -1px; }

.dd { position: absolute; top: 100%; left: -14px; padding-top: 14px; display: none; }
.nav-item:hover .dd, .nav-item:focus-within .dd { display: block; }
.dd > .dd-item:first-child { margin-top: 0; }
.dd { min-width: 230px; }
.dd .dd-item { display: block; }
.nav-item .dd { z-index: 960; }
.nav-item .dd > * { position: relative; }
.dd::before { content: ""; position: absolute; inset: 14px 0 0; background: #fff; border-radius: 14px; box-shadow: 0 14px 40px rgba(34,40,30,.16); }
.dd { animation: none; }
.nav-item:hover .dd, .nav-item:focus-within .dd { animation: pcFadeUp .28s cubic-bezier(.22,.61,.36,1) both; }
.dd-item { padding: 10px 16px; border-radius: 9px; color: var(--ink); font-size: 14.5px; margin: 0 10px; }
.dd .dd-item:first-child { margin-top: 24px; }
.dd .dd-item:last-child { margin-bottom: 10px; }
.dd-item:hover { background: #f3f5f0; color: var(--red); }

.fb-circle { width: 34px; height: 34px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: var(--ink); border: 1.5px solid var(--line-3); transition: all .25s; }
.fb-circle:hover { background: var(--red); border-color: var(--red); color: #fff; }

/* Overlay (transparent over hero) variant */
.site-header[data-header-overlay="1"]:not(.is-scrolled):not(.menu-open) .logo { color: #fff; text-shadow: 0 1px 14px rgba(0,0,0,.35); }
.site-header[data-header-overlay="1"]:not(.is-scrolled):not(.menu-open) .logo-sub { color: rgba(255,255,255,.85); }
.site-header[data-header-overlay="1"]:not(.is-scrolled):not(.menu-open) .navlink { color: #fff; text-shadow: 0 1px 14px rgba(0,0,0,.35); }
.site-header[data-header-overlay="1"]:not(.is-scrolled):not(.menu-open) .navlink.is-active { border-bottom-color: var(--red); }
.site-header[data-header-overlay="1"]:not(.is-scrolled):not(.menu-open) .fb-circle { color: #fff; border-color: rgba(255,255,255,.6); }
.site-header[data-header-overlay="1"]:not(.is-scrolled):not(.menu-open) .burger span { background: #fff; }

/* Burger + mobile menu */
.burger { display: none; background: none; border: none; cursor: pointer; padding: 10px; flex-direction: column; gap: 5px; z-index: 960; position: relative; }
.burger span { width: 26px; height: 2px; background: var(--ink); border-radius: 2px; transition: background .25s; }
.site-header.menu-open .burger span { background: var(--ink); }

.mobile-menu { position: fixed; inset: 0; z-index: 940; background: #fff; overflow: auto; padding: 110px 32px 48px; display: flex; flex-direction: column; gap: 6px; animation: pcFadeUp .35s cubic-bezier(.22,.61,.36,1) both; }
.mobile-menu > a { font-family: var(--caveat); font-size: 34px; color: var(--ink); padding: 6px 0; }
.mobile-sub { display: flex; flex-direction: column; gap: 2px; padding: 0 0 8px 18px; border-left: 2px solid #e4e8df; margin-left: 4px; }
.mobile-sub a { color: var(--body); font-size: 15px; padding: 5px 0; }
.mobile-menu .mobile-cta { margin-top: 18px; align-self: flex-start; font-family: var(--sans); font-size: 15px; padding: 13px 30px; }

@media (max-width: 1059px) {
  .main-nav { display: none; }
  .burger { display: flex; }
}
@media (min-width: 1060px) {
  .mobile-menu { display: none !important; }
}

/* ---------- Buttons ---------- */
.btn { display: inline-block; border-radius: 100px; font-weight: 600; font-family: var(--sans); cursor: pointer; transition: background .25s, color .25s, border-color .25s, transform .25s, box-shadow .25s; }
.btn-red { background: var(--red); color: #fff; border: none; }
.btn-red:hover { background: var(--red-dark); color: #fff; transform: translateY(-2px); }
.btn-outline-light { border: 1.5px solid rgba(255,255,255,.85); color: #fff; background: transparent; }
.btn-outline-light:hover { background: #fff; color: var(--ink); }
.btn-outline-dark { border: 1.5px solid var(--ink); color: var(--ink); background: transparent; }
.btn-outline-dark:hover { background: var(--ink); color: #fff; transform: translateY(-2px); }
.btn-white-red { background: #fff; color: var(--red); border: none; }
.btn-white-red:hover { background: var(--ink); color: #fff; }
.btn-footer-cta { margin-top: 20px; border: 1.5px solid #777; color: #fff; background: transparent; padding: 11px 26px; font-size: 13.5px; }
.btn-footer-cta:hover { background: var(--red); border-color: var(--red); color: #fff; }
.btn-pulse { animation: pcPulse 3.4s ease-in-out infinite; }

/* ---------- Cards, rows, links ---------- */
.card-lift { transition: transform .35s cubic-bezier(.22,.61,.36,1), box-shadow .35s, background .3s; }
.card-lift:hover { transform: translateY(-6px); box-shadow: 0 22px 54px rgba(34,40,30,.14); }
.card-lift[data-rot="l"]:hover { transform: translateY(-8px) rotate(-.5deg); box-shadow: 0 30px 70px rgba(18,26,14,.42); }
.card-lift[data-rot="r"]:hover { transform: translateY(-8px) rotate(.5deg); box-shadow: 0 30px 70px rgba(18,26,14,.42); }
a.card-lift, a.card-lift:hover { color: inherit; }

.row-link { display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: baseline; padding: 20px 10px; border-bottom: 1px solid var(--line); color: var(--body); transition: background .25s, padding .25s; }
.row-link:hover { background: #fff; color: var(--body); }
.row-link--slide:hover { padding-left: 22px; }

.crumb { font-size: 13px; color: var(--meta); display: flex; gap: 8px; flex-wrap: wrap; }
.crumb a { color: var(--meta); }
.crumb a:hover { color: var(--red); }
.crumb--light { color: rgba(255,255,255,.85); }
.crumb--light a { color: rgba(255,255,255,.85); }
.crumb--light a:hover { color: #fff; }
.crumb .crumb-here { color: var(--body); }
.crumb--light .crumb-here { color: #fff; }

.link-underline { font-weight: 600; border-bottom: 2px solid var(--red); padding-bottom: 2px; }

.tile-link { display: flex; align-items: center; justify-content: space-between; gap: 14px; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 20px 24px; color: var(--ink); font-weight: 600; font-size: 15.5px; transition: all .25s; }
.tile-link:hover { border-color: var(--red); color: var(--red); transform: translateY(-2px); }

.story-card { transition: transform .35s cubic-bezier(.22,.61,.36,1), box-shadow .35s; }
.story-card:hover { transform: rotate(0deg) translateY(-6px) !important; box-shadow: 0 22px 54px rgba(34,40,30,.14); }

.nav-underline-link { color: var(--ink); }
.nav-underline-link:hover { color: var(--red); }

/* ---------- GYIK accordion (native details) ---------- */
details.gyik { border-bottom: 1px solid var(--line); }
details.gyik summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 14px; cursor: pointer; padding: 18px 6px; font-size: 15.5px; font-weight: 700; color: var(--ink); }
details.gyik summary::-webkit-details-marker { display: none; }
details.gyik summary .gyik-arrow { color: var(--red); transition: transform .25s; }
details.gyik[open] summary .gyik-arrow { transform: rotate(180deg); }
details.gyik .gyik-body { margin: 0; padding: 0 6px 22px; font-size: 15px; line-height: 1.85; }

/* ---------- Forms ---------- */
.field { display: flex; flex-direction: column; gap: 7px; font-size: 13.5px; font-weight: 600; color: var(--ink); }
.field input, .field textarea { border: 1.5px solid var(--line-2); border-radius: 12px; padding: 13px 18px; font-size: 15px; font-family: var(--sans); color: var(--ink); background: #fff; outline: none; font-weight: 400; resize: vertical; }
.field input:focus, .field textarea:focus { border-color: var(--red); }
.check-label { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; line-height: 1.6; color: var(--muted); cursor: pointer; font-weight: 400; }
.check-label input { margin-top: 3px; accent-color: var(--red); }
.nl-input { border: 1.5px solid var(--line-3); border-radius: 100px; padding: 14px 24px; font-size: 15px; font-family: var(--sans); color: var(--ink); background: #fff; outline: none; }
.nl-input:focus { border-color: var(--red); }
.form-success { display: none; }
form.is-done { display: none !important; } /* beats the form's inline display:flex */
form.is-done + .form-success { display: block; }

/* ---------- Tables (naptár) ---------- */
.naptar-wrap { overflow-x: auto; }
.naptar { width: 100%; border-collapse: collapse; font-size: 14.5px; min-width: 560px; }
.naptar th { text-align: left; padding: 12px 10px; border-bottom: 2px solid var(--line-2); font-size: 11.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--meta); }
.naptar td { padding: 16px 10px; border-bottom: 1px solid var(--line); }
.naptar td a.ev-name { color: var(--ink); font-weight: 700; }
.naptar td a.ev-name:hover { color: var(--red); }

/* ---------- Media page rows ---------- */
.media-row { display: flex; gap: 16px; align-items: center; padding: 18px 8px; border-bottom: 1px solid var(--line); color: var(--body); transition: background .2s; }
.media-row:hover { background: #fff; color: var(--body); }

/* ---------- Footer ---------- */
.site-footer { background: var(--footer-bg); color: #eee; }
.footer-grid { max-width: 1200px; margin: 0 auto; padding: 64px 24px 40px; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 44px; }
.footer-logo { font-family: var(--caveat); font-size: 34px; font-weight: 700; color: #fff; line-height: 1; }
.footer-lead { margin: 12px 0 0; font-size: 13.5px; line-height: 1.8; color: #bdbdbd; }
.footer-fb { margin-top: 18px; width: 38px; height: 38px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; border: 1.5px solid #555; color: #eee; transition: all .25s; }
.footer-fb:hover { background: var(--red); border-color: var(--red); color: #fff; }
.footer-title { font-size: 12px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: #8f9789; margin-bottom: 16px; }
.footer-nav { display: flex; flex-direction: column; gap: 9px; font-size: 14px; }
.footer-nav a { color: #dedede; }
.footer-nav a:hover { color: #fff; }
.footer-muted { color: #bdbdbd; }
.footer-bottom { border-top: 1px solid #454545; }
.footer-bottom-inner { max-width: 1200px; margin: 0 auto; padding: 20px 24px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; font-size: 12.5px; color: #9a9a9a; }
.footer-motto { font-family: var(--caveat); font-size: 19px; color: #8f9789; }

/* ---------- To top + cookie ---------- */
.to-top { position: fixed; right: 26px; bottom: 26px; z-index: 930; width: 46px; height: 46px; border-radius: 50%; border: none; cursor: pointer; background: var(--red); color: #fff; box-shadow: 0 8px 24px rgba(168,88,58,.35); font-size: 18px; display: flex; align-items: center; justify-content: center; transition: transform .25s; }
.to-top:hover { transform: translateY(-3px); }

.cookie-bar { position: fixed; left: 18px; right: 18px; bottom: 18px; z-index: 990; display: flex; justify-content: center; pointer-events: none; }
.cookie-card { pointer-events: auto; background: #fff; border-radius: 18px; box-shadow: 0 18px 60px rgba(34,40,30,.25); max-width: 720px; width: 100%; padding: 20px 24px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.cookie-card svg { flex: none; }
.cookie-card p { margin: 0; flex: 1; min-width: 220px; font-size: 13px; line-height: 1.65; color: var(--body); }
.cookie-card p a { font-weight: 600; }
.cookie-actions { display: flex; gap: 10px; }
.cookie-actions .btn { padding: 10px 20px; font-size: 13px; }
.btn-cookie-decline { background: none; border: 1.5px solid var(--line-3); color: var(--body); }
.btn-cookie-decline:hover { border-color: #999; }
.cookie-actions .btn-red:hover { transform: none; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
