/* ==========================================================================
   Kelemen Réka – landing page
   Plain CSS, no build step. Colours based on the "Warm Earth" palette.
   ========================================================================== */

:root {
  --bg: #f7f3ef;
  --bg-soft: #efe8e2;
  --surface: #fffdfb;
  --ink: #1c0803;
  --ink-soft: #5a4640;
  --muted: #8a7770;
  --accent: #875f59;
  --accent-dark: #6d4a45;
  --khaki: #c1b0a6;
  --pale: #ddd5cf;
  --line: rgba(28, 8, 3, .12);

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --container: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 24px;
  --radius-sm: 14px;
  --section-y: clamp(80px, 12vw, 160px);

  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: clamp(16px, 1.05vw, 17px);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3 { margin: 0; font-family: var(--font-display); font-weight: 400; line-height: 1.1; letter-spacing: -.02em; }
em { font-style: italic; color: var(--accent); }
figure { margin: 0; }

::selection { background: var(--accent); color: #fff; }

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  padding: 10px 16px; background: var(--ink); color: #fff; border-radius: 8px;
}
.skip-link:focus { top: 16px; }

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

[hidden] { display: none !important; }

/* ---------- Typography helpers ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  margin-bottom: 20px;
  font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent);
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.eyebrow--light { color: var(--pale); }

.section { padding-block: var(--section-y); }
.section-head { max-width: 720px; margin-bottom: clamp(40px, 6vw, 72px); }
.section-head--row { max-width: none; display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 24px; }
.section-title { font-size: clamp(36px, 5vw, 64px); }
.section-title--sm { font-size: clamp(30px, 3.4vw, 46px); line-height: 1.15; }
.section-intro { max-width: 60ch; margin: 20px 0 0; color: var(--ink-soft); }

.lead { font-family: var(--font-display); font-size: clamp(21px, 2vw, 26px); line-height: 1.45; color: var(--ink); }

.text-link { color: var(--accent); font-weight: 600; text-decoration-thickness: 1px; text-underline-offset: 4px; }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--ink); --btn-fg: #fff; --btn-fill: var(--accent);
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 28px; border-radius: 999px;
  border: 1px solid var(--btn-bg);
  background: var(--btn-bg); color: var(--btn-fg);
  font: 500 15px/1 var(--font-body); text-decoration: none; white-space: nowrap;
  transition: color .4s var(--ease-out), border-color .4s var(--ease-out);
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--btn-fill); border-radius: inherit;
  transform: translateY(101%); transition: transform .5s var(--ease-out);
}
.btn:hover::before, .btn:focus-visible::before { transform: translateY(0); }
.btn:hover { border-color: var(--btn-fill); }
.btn .arrow { display: inline-block; transition: transform .4s var(--ease-out); }
.btn:hover .arrow { transform: translateX(4px); }

.btn--ghost { --btn-bg: transparent; --btn-fg: var(--ink); --btn-fill: var(--ink); border-color: var(--ink); }
.btn--ghost:hover { color: #fff; }
.btn--small { padding: 12px 20px; font-size: 14px; }
.btn--light { --btn-bg: var(--bg); --btn-fg: var(--ink); --btn-fill: #fff; }
.btn--light-ghost { --btn-bg: transparent; --btn-fg: #fff; --btn-fill: var(--bg); border-color: rgba(255,255,255,.5); }
.btn--light-ghost:hover { color: var(--ink); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  padding-block: 22px;
  transition: padding .4s var(--ease-out), background-color .4s, box-shadow .4s;
}
.site-header.is-scrolled {
  padding-block: 12px;
  background: rgba(247, 243, 239, .78);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  backdrop-filter: blur(14px) saturate(1.4);
  box-shadow: 0 1px 0 var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.logo {
  font-family: var(--font-display); font-size: 28px; font-weight: 500; font-style: italic;
  letter-spacing: -.02em; text-decoration: none; color: var(--ink);
  position: relative; z-index: 60;
}

/* Header logo: the name at the top; on scroll its letters slide together and the KR mark takes its place */
.logo--swap { display: inline-grid; align-items: center; justify-items: start; }
.logo--swap > * { grid-area: 1 / 1; }
.logo-text {
  white-space: nowrap;
  transition: letter-spacing .7s var(--ease-in-out), opacity .45s .15s, filter .6s;
}
.logo-mark {
  width: auto; height: 40px;
  opacity: 0; transform: scale(.6) rotate(-6deg); transform-origin: left center;
  transition: opacity .5s .2s, transform .7s .1s var(--ease-out);
}
.site-header.is-scrolled .logo-text { letter-spacing: -.5em; opacity: 0; filter: blur(2px); transition-delay: 0s, 0s, 0s; }
.site-header.is-scrolled .logo-mark { opacity: 1; transform: none; }
/* Scrolling back up: the mark leaves first, then the name opens up again */
.site-header:not(.is-scrolled) .logo-mark { transition-delay: 0s, 0s; }
.site-header:not(.is-scrolled) .logo-text { transition-delay: .1s, .15s, .1s; }

.nav-list { display: flex; align-items: center; gap: clamp(16px, 2.2vw, 34px); margin: 0; padding: 0; list-style: none; }
.nav-list a:not(.btn) {
  position: relative; font-size: 15px; text-decoration: none; color: var(--ink-soft);
  transition: color .3s;
}
.nav-list a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: right;
  transition: transform .4s var(--ease-out);
}
.nav-list a:not(.btn):hover { color: var(--ink); }
.nav-list a:not(.btn):hover::after { transform: scaleX(1); transform-origin: left; }

/* Szakterületek submenu: opens on hover / keyboard focus on desktop */
.has-sub { position: relative; }
.has-sub > a::before {
  content: ""; position: absolute; right: -14px; top: 50%; width: 6px; height: 6px;
  border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
  transform: translateY(-70%) rotate(45deg); transition: transform .3s var(--ease-out);
}
.has-sub:hover > a::before, .has-sub:focus-within > a::before { transform: translateY(-30%) rotate(-135deg); }
.sub-menu {
  position: absolute; top: 100%; left: -18px; z-index: 5;
  min-width: 230px; margin: 14px 0 0; padding: 8px; list-style: none;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm);
  box-shadow: 0 24px 48px -24px rgba(28, 8, 3, .3);
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .3s, transform .4s var(--ease-out), visibility 0s .3s;
}
.sub-menu::before { content: ""; position: absolute; left: 0; right: 0; bottom: 100%; height: 16px; } /* hover bridge */
.has-sub:hover > .sub-menu, .has-sub:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.nav-list .sub-menu a:not(.btn) { display: block; padding: 10px 14px; border-radius: 10px; color: var(--ink); white-space: nowrap; }
.nav-list .sub-menu a:not(.btn)::after { display: none; }
.nav-list .sub-menu a:not(.btn):hover, .nav-list .sub-menu a[aria-current="page"] { background: var(--bg-soft); color: var(--accent); }

.nav-toggle { display: none; }

@media (max-width: 900px) {
  .nav-toggle {
    display: grid; place-content: center; gap: 7px;
    position: relative; z-index: 60;
    width: 48px; height: 48px; padding: 0; border: 0; border-radius: 50%;
    background: var(--ink); cursor: pointer;
  }
  .nav-toggle span { display: block; width: 20px; height: 1.5px; background: #fff; transition: transform .45s var(--ease-out); }
  .nav-open .nav-toggle span:first-child { transform: translateY(4.25px) rotate(45deg); }
  .nav-open .nav-toggle span:last-child { transform: translateY(-4.25px) rotate(-45deg); }

  .nav {
    position: fixed; inset: 0; z-index: 55;
    display: flex; align-items: center;
    padding: 100px var(--gutter) 40px;
    background: var(--bg);
    overflow-y: auto;
    clip-path: circle(0 at calc(100% - var(--gutter) - 24px) 44px);
    transition: clip-path .7s var(--ease-in-out), visibility 0s .7s;
    visibility: hidden;
  }
  .nav-open .nav { clip-path: circle(150% at calc(100% - var(--gutter) - 24px) 44px); visibility: visible; transition-delay: 0s; }
  /* backdrop-filter would trap the fixed menu inside the header */
  .nav-open .site-header { -webkit-backdrop-filter: none; backdrop-filter: none; background: transparent; box-shadow: none; }
  .nav-list { flex-direction: column; align-items: flex-start; gap: 18px; }
  .nav-list li { opacity: 0; transform: translateY(20px); transition: opacity .5s, transform .6s var(--ease-out); }
  .nav-open .nav-list li { opacity: 1; transform: none; transition-delay: calc(.2s + var(--i) * .06s); }
  .nav-list a:not(.btn) { font-family: var(--font-display); font-size: 36px; color: var(--ink); }
  .has-sub > a::before { display: none; }
  .sub-menu {
    position: static; min-width: 0; margin: 10px 0 0; padding: 0 0 0 20px;
    background: none; border: 0; border-left: 1px solid var(--line); border-radius: 0; box-shadow: none;
    opacity: 1; visibility: visible; transform: none;
  }
  .sub-menu::before { display: none; }
  .nav-list .sub-menu a:not(.btn) { padding: 4px 0; font-size: 24px; font-style: italic; color: var(--ink-soft); }
  .nav-list .sub-menu a:not(.btn):hover, .nav-list .sub-menu a[aria-current="page"] { background: none; }
  .nav-cta-item { margin-top: 16px; }
  .nav-open { overflow: hidden; }
}

/* ---------- Hero ---------- */
.hero { position: relative; overflow-x: clip; padding-top: clamp(120px, 16vw, 170px); }
.hero-grid {
  display: grid; grid-template-columns: 1.1fr .9fr; align-items: center;
  gap: clamp(40px, 6vw, 96px);
}
.hero-title {
  font-size: clamp(44px, 6.4vw, 92px);
  font-weight: 300; line-height: 1; letter-spacing: -.035em;
  margin-bottom: 28px;
}
.hero-sub { max-width: 44ch; font-size: clamp(17px, 1.4vw, 20px); color: var(--ink-soft); margin-bottom: 24px; }
.hero-note {
  max-width: 40ch; margin-bottom: 40px; padding-left: 18px; border-left: 1px solid var(--khaki);
  font-family: var(--font-display); font-style: italic; font-size: clamp(17px, 1.3vw, 19px); line-height: 1.5; color: var(--accent-dark);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.hero-media { position: relative; justify-self: end; width: min(100%, 480px); }
.blob {
  position: absolute; z-index: -1; inset: 8% -14% -6% -10%;
  background: radial-gradient(circle at 30% 30%, var(--pale), transparent 65%),
              radial-gradient(circle at 75% 70%, rgba(193, 176, 166, .55), transparent 60%);
  filter: blur(10px);
  animation: blob 14s var(--ease-in-out) infinite alternate;
}
@keyframes blob {
  0%   { border-radius: 42% 58% 60% 40% / 45% 45% 55% 55%; transform: rotate(0deg) scale(1); }
  100% { border-radius: 58% 42% 40% 60% / 55% 60% 40% 45%; transform: rotate(12deg) scale(1.06); }
}

.arch { position: relative; overflow: hidden; border-radius: 999px 999px var(--radius) var(--radius); background: var(--pale); }
.arch img { width: 100%; height: 100%; object-fit: cover; }
.arch--hero { aspect-ratio: 4 / 5.4; }

.hero-badge {
  position: absolute; left: -32px; bottom: 48px;
  display: flex; align-items: center; gap: 10px;
  padding: 14px 20px; border-radius: 999px;
  background: rgba(255, 253, 251, .9);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  box-shadow: 0 20px 40px -20px rgba(28, 8, 3, .35);
  font-size: 14px; font-weight: 500;
}
.hero-badge-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 rgba(135, 95, 89, .5); animation: pulse 2.4s infinite; }
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(135, 95, 89, .5); }
  70%  { box-shadow: 0 0 0 12px rgba(135, 95, 89, 0); }
  100% { box-shadow: 0 0 0 0 rgba(135, 95, 89, 0); }
}

/* Marquee */
.marquee {
  margin-top: clamp(64px, 9vw, 120px);
  border-block: 1px solid var(--line);
  overflow: hidden; white-space: nowrap;
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.marquee-track { display: inline-flex; gap: 40px; padding-block: 22px; animation: marquee 40s linear infinite; }
.marquee-track > span { font-family: var(--font-display); font-size: clamp(22px, 2.6vw, 34px); font-style: italic; color: var(--ink-soft); }
.marquee-track > span::after { content: "✦"; margin-left: 40px; font-style: normal; font-size: 18px; color: var(--khaki); vertical-align: middle; }
@keyframes marquee { to { transform: translateX(calc(-50% - 20px)); } }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-media { justify-self: center; width: min(100%, 420px); }
  .hero-badge { left: 12px; bottom: 24px; }
}

/* ---------- Stats ---------- */
.stats { padding-top: clamp(64px, 9vw, 110px); }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.stat { padding: 8px 32px; border-left: 1px solid var(--line); }
.stat:first-of-type { border-left: 0; padding-left: 0; }
.stat-num {
  margin: 0; font-family: var(--font-display); font-weight: 300;
  font-size: clamp(56px, 7vw, 96px); line-height: 1; letter-spacing: -.04em;
  font-variant-numeric: tabular-nums;
}
.stat-label { margin: 8px 0 0; color: var(--muted); font-size: 15px; }

@media (max-width: 640px) {
  .stats-grid { grid-template-columns: 1fr 1fr; column-gap: 20px; }
  .stat, .stat:first-of-type { padding: 20px 0; border-left: 0; border-top: 1px solid var(--line); }
}

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(40px, 7vw, 112px); align-items: start; }
.arch--about { position: sticky; top: 120px; aspect-ratio: 3 / 4.2; }
.about-text p:not(.eyebrow):not(.lead) { color: var(--ink-soft); }
.about-text .section-title { margin-bottom: 32px; }

@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; }
  .arch--about { position: relative; top: 0; max-width: 420px; }
}

/* ---------- Approach ---------- */
.approach-list { margin: 0; padding: 0; list-style: none; counter-reset: approach; border-bottom: 1px solid var(--line); }
.approach-item {
  counter-increment: approach;
  display: grid; grid-template-columns: 64px minmax(0, .9fr) minmax(0, 1.1fr); gap: 12px clamp(24px, 4vw, 64px);
  padding-block: clamp(32px, 4vw, 52px); border-top: 1px solid var(--line);
}
.approach-item::before {
  content: counter(approach, decimal-leading-zero);
  font-family: var(--font-display); font-style: italic; font-size: 18px; color: var(--accent); padding-top: 6px;
}
.approach-title { font-size: clamp(24px, 2.4vw, 34px); line-height: 1.15; }
.approach-text p { color: var(--ink-soft); }
.approach-text p:last-child { margin-bottom: 0; }

@media (max-width: 900px) {
  .approach-item { grid-template-columns: 1fr; }
  .approach-item::before { padding-top: 0; }
}

/* ---------- Quote band ---------- */
.quote-band { background: var(--ink); color: var(--bg); padding-block: clamp(80px, 11vw, 140px); overflow: hidden; }
.quote { max-width: 900px; margin: 0 auto; text-align: center; }
.quote p {
  font-family: var(--font-display); font-weight: 300; font-style: italic;
  font-size: clamp(34px, 5vw, 68px); line-height: 1.12; letter-spacing: -.02em;
  margin-bottom: 28px;
}
.quote cite { font-style: normal; font-size: 15px; letter-spacing: .1em; text-transform: uppercase; color: var(--khaki); }

/* ---------- Services ---------- */
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: start; }
.service {
  position: relative;
  display: flex; flex-direction: column;
  padding: clamp(28px, 3vw, 40px);
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out), border-color .5s;
}
.service:hover, .service.is-open { transform: translateY(-6px); box-shadow: 0 30px 60px -30px rgba(28, 8, 3, .28); border-color: transparent; }
.service:target { border-color: var(--accent); }
.service-num { font-family: var(--font-display); font-style: italic; font-size: 18px; color: var(--accent); margin-bottom: 48px; }
.service h3 { font-size: clamp(28px, 2.6vw, 36px); margin-bottom: 12px; }
.service-sub { color: var(--muted); margin-bottom: 8px; }

.service-more { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .6s var(--ease-out); }
.service-more > div { overflow: hidden; }
.service-more p { color: var(--ink-soft); font-size: 15.5px; }
.service-more > div > :first-child { margin-top: 20px; }
.service.is-open .service-more { grid-template-rows: 1fr; }

.service-toggle {
  margin-top: 24px; align-self: flex-start;
  display: inline-flex; align-items: center; gap: 12px;
  padding: 0; border: 0; background: none; cursor: pointer;
  font: 600 15px/1 var(--font-body); color: var(--ink);
}
.plus { position: relative; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); transition: background .4s, border-color .4s, transform .5s var(--ease-out); }
.plus::before, .plus::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.5px; background: currentColor; transform: translate(-50%, -50%); }
.plus::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform .5s var(--ease-out); }
.service-toggle:hover .plus { background: var(--ink); border-color: var(--ink); color: #fff; }
.service.is-open .plus { transform: rotate(180deg); }
.service.is-open .plus::after { transform: translate(-50%, -50%) rotate(0deg); }

.service-media { margin: 20px 0 4px; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--radius-sm); background: var(--pale); }
.service-media img { width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, center 70%); }

@media (max-width: 900px) { .service-grid { grid-template-columns: 1fr; } }

/* ---------- Credentials ---------- */
.degree-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; margin-bottom: clamp(32px, 4vw, 48px); }
.degree {
  display: flex; align-items: center; gap: clamp(20px, 3vw, 36px);
  padding: clamp(24px, 3vw, 36px); border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line);
}
.degree-level {
  flex: none; display: grid; place-items: center; margin: 0;
  width: clamp(72px, 8vw, 96px); aspect-ratio: 1; border-radius: 50%;
  background: var(--bg-soft); color: var(--accent);
  font-family: var(--font-display); font-style: italic; font-size: clamp(22px, 2.4vw, 30px);
}
.degree-title { font-size: clamp(22px, 2.2vw, 30px); margin-bottom: 6px; }
.degree-school { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.5; }

.credentials { background: var(--bg-soft); padding-bottom: clamp(48px, 6vw, 80px); }
.cred-more-body { position: relative; max-height: 380px; overflow: hidden; transition: max-height .8s var(--ease-out); }
.cred-more-body::after {
  content: ""; position: absolute; inset: auto 0 0; height: 75%; pointer-events: none;
  background: linear-gradient(to bottom, rgba(239, 232, 226, 0), var(--bg-soft) 85%);
  transition: opacity .5s var(--ease-out);
}
.cred-more.is-open .cred-more-body::after { opacity: 0; }
.cred-toggle { display: flex; margin: 16px auto 0; }
.cred-toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 999px; }
.cred-more.is-open .plus { transform: rotate(180deg); }
.cred-more.is-open .plus::after { transform: translate(-50%, -50%) rotate(0deg); }

.cred-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(40px, 5vw, 72px) clamp(32px, 5vw, 80px); align-items: start; }
.cred-group:first-of-type { grid-row: span 2; }
.cred-title { padding-bottom: 16px; margin-bottom: 8px; border-bottom: 1px solid var(--ink); font-size: clamp(24px, 2.4vw, 32px); }
.cred-providers { display: grid; }
.cred-provider { padding-block: 20px; border-bottom: 1px solid var(--line); }
.cred-provider:last-child { border-bottom: 0; }
.cred-name { margin: 0 0 10px; font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.cred-items { margin: 0; padding: 0; list-style: none; }
.cred-items li { position: relative; padding-left: 22px; margin-bottom: 6px; color: var(--ink-soft); font-size: 15.5px; line-height: 1.55; }
.cred-items li::before { content: ""; position: absolute; left: 0; top: .78em; width: 10px; height: 1px; background: var(--khaki); }

@media (max-width: 900px) {
  .cred-grid { grid-template-columns: 1fr; }
  .cred-group:first-of-type { grid-row: auto; }
}

/* ---------- Reviews ---------- */
.reviews { background: var(--bg-soft); }
.review-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 20px; align-items: stretch; }
.review {
  position: relative; display: flex; flex-direction: column; gap: 24px;
  margin: 0; padding: clamp(28px, 3.4vw, 48px); border-radius: var(--radius); background: var(--surface);
}
.review:first-of-type { grid-row: span 2; justify-content: center; background: var(--accent-dark); color: #fff; }
.review-mark {
  display: block; height: .5em; font-family: var(--font-display); font-style: italic;
  font-size: 96px; line-height: 1; color: var(--khaki);
}
.review-text { margin: 0; }
.review-text p { margin: 0; font-family: var(--font-display); font-size: clamp(17px, 1.4vw, 19px); line-height: 1.55; }
.review:first-of-type .review-text p { font-size: clamp(19px, 1.8vw, 24px); line-height: 1.5; }
.review-topic {
  margin-top: auto; align-self: flex-start;
  padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line);
  font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted);
}
.review:first-of-type .review-topic { border-color: rgba(255, 255, 255, .3); color: var(--pale); }
.review-topic:empty { display: none; }

@media (max-width: 900px) {
  .review-grid { grid-template-columns: 1fr; }
  .review:first-of-type { grid-row: auto; }
}

/* ---------- Blog ---------- */
.post-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: clamp(20px, 3vw, 40px); }
.post-link { display: flex; flex-direction: column; height: 100%; text-decoration: none; }
.post-media { aspect-ratio: 4 / 3; margin-bottom: 20px; border-radius: var(--radius-sm); overflow: hidden; background: linear-gradient(135deg, var(--pale), var(--khaki)); }
.post-media:empty { display: grid; place-items: center; }
.post-media:empty::after { content: "Kelemen Réka"; font-family: var(--font-display); font-style: italic; font-size: 28px; color: rgba(255, 255, 255, .8); }
.post-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease-out); }
.post-link:hover .post-media img { transform: scale(1.05); }
.post-date { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.post-title { margin: 8px 0 12px; font-size: clamp(22px, 2vw, 28px); transition: color .3s; }
.post-link:hover .post-title { color: var(--accent); }
.post-excerpt { color: var(--ink-soft); font-size: 15px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.post-more { margin-top: auto; font-weight: 600; font-size: 15px; }
.post-more .arrow { display: inline-block; transition: transform .4s var(--ease-out); }
.post-link:hover .post-more .arrow { transform: translateX(4px); }
.post-empty { color: var(--muted); }

/* ---------- Contact ---------- */
.contact-card {
  display: grid; grid-template-columns: 1.2fr .8fr; gap: 0;
  padding: 0; overflow: hidden;
  border-radius: calc(var(--radius) * 1.5);
  background: var(--accent-dark); color: #fff;
}
.contact-body { padding: clamp(32px, 6vw, 80px); }
.contact-intro { max-width: 46ch; color: rgba(255, 255, 255, .78); margin: 20px 0 32px; }
.booking { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 48px; }

.contact-list { display: grid; gap: 0; margin: 0; }
.contact-list > div { display: grid; grid-template-columns: 140px 1fr; gap: 16px; padding: 16px 0; border-top: 1px solid rgba(255, 255, 255, .16); }
.contact-list dt { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--pale); padding-top: 3px; }
.contact-list dd { margin: 0; }
.contact-list a { text-decoration: none; }
.contact-list a:hover { text-decoration: underline; text-underline-offset: 4px; }
/* Day | time | note (e.g. "páros hét"); a repeated day is blanked in normalize(), so its rows read as one group. */
.hours { display: grid; grid-template-columns: auto auto 1fr; gap: 6px 16px; margin: 0; padding: 0; list-style: none; }
.hours li { display: grid; grid-template-columns: subgrid; grid-column: 1 / -1; align-items: baseline; }
.hours li:has(.hours-day:empty) { margin-top: -2px; }
.hours-time { font-variant-numeric: tabular-nums; white-space: nowrap; }
.hours-note { font-size: 13px; font-style: italic; color: var(--pale); white-space: nowrap; }
.hours-note:empty { display: none; }
.location { container-type: inline-size; }
/* A narrow box puts the note under the time instead of in a third column. */
@container (max-width: 290px) {
  .hours { grid-template-columns: auto 1fr; }
  .hours-note { grid-column: 2; margin-top: -6px; }
}

.locations { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin-top: 32px; }
.location { padding: 24px; border: 1px solid rgba(255, 255, 255, .16); border-radius: var(--radius-sm); background: rgba(255, 255, 255, .04); }
.location-title { font-size: 22px; margin-bottom: 16px; }
.location dl { display: grid; gap: 16px; margin: 0; }
.location dt { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--pale); margin-bottom: 4px; }
.location dd { margin: 0; color: rgba(255, 255, 255, .88); }
.location a { text-decoration: underline; text-decoration-color: rgba(255, 255, 255, .35); text-underline-offset: 4px; }
.location a:hover { text-decoration-color: currentColor; }

.contact-media { min-height: 100%; }
.contact-media img { width: 100%; height: 100%; object-fit: cover; }

@media (max-width: 900px) {
  .contact-card { grid-template-columns: 1fr; }
  .contact-media { aspect-ratio: 4 / 3; order: -1; }
  .contact-list > div { grid-template-columns: 1fr; gap: 4px; }
}

/* ---------- Service pages (gyogytorna.html, manualis-kezeles.html, pilates.html) ---------- */
.service-page { padding-top: clamp(120px, 15vw, 160px); }
.service-hero .eyebrow a { color: inherit; text-decoration: none; }
.service-hero .eyebrow a:hover { text-decoration: underline; text-underline-offset: 4px; }
.service-page-title { font-size: clamp(48px, 7vw, 104px); font-weight: 300; line-height: 1; letter-spacing: -.035em; margin-bottom: 24px; }
.service-hero .lead { max-width: 34ch; margin-bottom: 36px; color: var(--ink-soft); }
.service-body { padding-block: clamp(48px, 7vw, 88px) var(--section-y); }
.service-body::after { content: ""; display: block; clear: both; }
/* The photo sits on the right and the text flows around it */
.service-figure {
  float: right; width: min(44%, 340px); aspect-ratio: 4 / 5;
  margin: 8px 0 24px clamp(24px, 4vw, 48px);
  border-radius: var(--radius); overflow: hidden; background: var(--pale);
}
.service-figure img { width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, center); }
.service-body .entry-content p { margin-bottom: 1.1em; }
.service-body .entry-content > p:first-child { font-family: var(--font-display); font-size: clamp(21px, 2vw, 26px); line-height: 1.45; color: var(--ink); }

.other-services { padding-top: 0; }
.other-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.other-service {
  display: flex; flex-direction: column; padding: clamp(28px, 3vw, 40px);
  border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line);
  text-decoration: none;
  transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out), border-color .5s;
}
.other-service:hover { transform: translateY(-6px); box-shadow: 0 30px 60px -30px rgba(28, 8, 3, .28); border-color: transparent; }
.other-service .service-num { margin-bottom: 32px; }
.other-service-title { font-family: var(--font-display); font-size: clamp(28px, 2.6vw, 36px); line-height: 1.1; margin-bottom: 10px; }
.other-service-sub { color: var(--muted); margin-bottom: 28px; }
.other-service-more { margin-top: auto; font-weight: 600; font-size: 15px; }
.other-service-more .arrow { display: inline-block; transition: transform .4s var(--ease-out); }
.other-service:hover .other-service-more .arrow { transform: translateX(4px); }

@media (max-width: 900px) { .other-grid { grid-template-columns: 1fr; } }
@media (max-width: 600px) {
  .service-figure { float: none; width: 100%; aspect-ratio: 4 / 3; margin: 0 0 28px; }
}

/* ---------- Text pages (adatkezeles.html, WordPress pages and posts) ---------- */
.page-main { padding-top: 90px; min-height: 70vh; }
.page-section { padding-block: clamp(56px, 8vw, 110px); }
.container--narrow { max-width: calc(760px + var(--gutter) * 2); }
.page-head { margin-bottom: clamp(32px, 5vw, 56px); }
.page-lead { color: var(--ink-soft); margin-bottom: 32px; }
.entry-title { font-size: clamp(38px, 5.5vw, 68px); margin-top: 12px; }

.entry-content { font-size: clamp(17px, 1.2vw, 19px); color: var(--ink-soft); }
.entry-content > * + * { margin-top: 1.2em; }
.entry-content p { margin: 0; }
.entry-content h2, .entry-content h3, .entry-content h4 { color: var(--ink); margin-top: 1.8em; }
.entry-content h2 { font-size: clamp(28px, 3vw, 38px); }
.entry-content h3 { font-size: clamp(23px, 2.2vw, 28px); }
.entry-content a { color: var(--accent); text-underline-offset: 4px; }
.entry-content ul, .entry-content ol { padding-left: 1.3em; }
.entry-content li + li { margin-top: .4em; }
.entry-content img, .entry-content .wp-block-image img { border-radius: var(--radius-sm); }
.entry-content figcaption { font-size: 14px; color: var(--muted); text-align: center; margin-top: 8px; }
.entry-content blockquote {
  margin-inline: 0; padding-left: 24px; border-left: 2px solid var(--accent);
  font-family: var(--font-display); font-style: italic; font-size: 1.3em; color: var(--ink);
}
.entry-content hr { border: 0; border-top: 1px solid var(--line); margin-block: 2.5em; }
.entry-content .alignwide, .entry-content .alignfull { margin-inline: 0; }

/* Placeholder data still to be filled in */
.todo { padding: 0 4px; border-radius: 4px; background: #fbe7a8; color: var(--ink); }

/* ---------- Footer ---------- */
.site-footer { padding-block: 48px; border-top: 1px solid var(--line); }
.footer-inner { display: grid; grid-template-columns: 1fr auto; gap: 24px 40px; align-items: center; }
.logo--footer { font-size: 32px; }
.footer-name { margin: 4px 0 0; color: var(--muted); font-size: 14px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer-nav a { font-size: 15px; text-decoration: none; color: var(--ink-soft); }
.footer-nav a:hover { color: var(--accent); }
.copyright { grid-column: 1 / -1; margin: 16px 0 0; font-size: 13px; color: var(--muted); }
.copyright a { color: inherit; text-underline-offset: 3px; }
.copyright a:hover { color: var(--accent); }

@media (max-width: 700px) { .footer-inner { grid-template-columns: 1fr; } }

/* ==========================================================================
   Animations (only when JS is running; content stays visible without JS)
   ========================================================================== */

.js [data-reveal] {
  opacity: 0; transform: translateY(32px);
  transition: opacity 1s var(--ease-out), transform 1.1s var(--ease-out);
  transition-delay: calc(var(--i, 0) * 90ms);
}
.js [data-reveal].is-visible { opacity: 1; transform: none; }

/* Word-by-word headline */
.js [data-split] .word { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.js [data-split] .word > span {
  display: inline-block; transform: translateY(110%);
  transition: transform 1.1s var(--ease-out);
  transition-delay: calc(.15s + var(--w) * 80ms);
}
.js [data-split].is-visible .word > span { transform: none; }

/* Image wipe + settle (clip the inner <picture>, so the observed figure keeps its size) */
.img-reveal > picture { display: block; height: 100%; }
.js .img-reveal > picture { clip-path: inset(100% 0 0 0); transition: clip-path 1.4s var(--ease-in-out); }
.js .img-reveal img { transform: scale(1.18); transition: transform 1.8s var(--ease-out); }
.js .img-reveal.is-visible > picture { clip-path: inset(0); }
.js .img-reveal.is-visible img { transform: scale(1); }

/* Parallax is applied with a CSS variable from JS */
/* The image is 60px taller than its frame and shifted up 30px, so it never shows an edge */
[data-parallax] img { height: calc(100% + 60px) !important; translate: 0 calc(var(--parallax, 0px) - 30px); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js [data-reveal], .js [data-split] .word > span, .js .img-reveal > picture, .js .img-reveal img {
    opacity: 1 !important; transform: none !important; clip-path: none !important;
  }
  [data-parallax] img { translate: 0 -30px; }
}
