:root {
  --color-bg: #e6e7e9;
  --color-bg-alt: #ffffff;
  --color-text: #1f2a37;
  --color-text-muted: #5b6572;
  --color-accent: #e2653f;
  --color-accent-soft: #f3d9cf;
  --color-rule: #1f2a37;
  --color-border: #d3d1cb;
  --max-width: 1240px;
  --gutter: clamp(1.25rem, 4vw, 4rem);
  --font-display: 'Quire Sans Pro', -apple-system, BlinkMacSystemFont, sans-serif;
}

* {
  box-sizing: border-box;
}

/* ---------------------------------------------------------------------- */
/* Decorative background textures (recurring PDF motifs)                  */
/* ---------------------------------------------------------------------- */

.texture-waves {
  position: relative;
  isolation: isolate;
}
.texture-waves::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='48' viewBox='0 0 240 48'%3E%3Cpath d='M0 24 C 30 4, 60 44, 90 24 S 150 4, 180 24 S 240 44, 240 24' fill='none' stroke='%23ffffff' stroke-width='1.5' opacity='0.9'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 240px 48px;
}

.texture-chevron {
  position: relative;
  isolation: isolate;
}
.texture-chevron::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='44' height='22' viewBox='0 0 44 22'%3E%3Cpath d='M0 22 L11 0 L22 22 L33 0 L44 22' fill='none' stroke='%23ffffff' stroke-width='1.5' opacity='0.9'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 44px 22px;
}

.texture-diagonal-light {
  position: relative;
  isolation: isolate;
}
.texture-diagonal-light::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: linear-gradient(
    115deg,
    transparent 35%,
    rgba(255, 255, 255, 0.55) 48%,
    rgba(255, 255, 255, 0.15) 56%,
    transparent 68%
  );
}

/* Per-section background textures (real design exports) — same layering
   as the .texture-* classes above: an isolated stacking context with the
   image on a z-index:-1 ::before, so it paints on top of the section's own
   opaque background-color but behind its content, and any mix-blend-mode
   media in the section still blends against that combined layer. */
.bg-hullam,
.bg-verlauf,
.bg-haromszog-hullam,
.bg-fenypaszmak-01,
.bg-fenypaszmak-02,
.bg-hullam-forditott {
  position: relative;
  isolation: isolate;
}
.bg-hullam::before,
.bg-verlauf::before,
.bg-haromszog-hullam::before,
.bg-fenypaszmak-01::before,
.bg-fenypaszmak-02::before,
.bg-hullam-forditott::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background-repeat: no-repeat;
  background-position: center;
}

.bg-hullam::before {
  background-image: url('images/hullam.png');
  background-size: 100% 100%;
}

.bg-verlauf::before {
  /* the .jpg export is pre-flattened (opaque, self-contained gradient) —
     unlike the .png, which is a mostly-opaque white shape with a
     transparent window rather than a soft gradient, and read as a blank
     white panel here. */
  background-image: url('images/verlauf.jpg');
  background-size: cover;
}

.bg-haromszog-hullam::before {
  /* shown only in the bottom half, growing up from the bottom edge —
     full-section cover was too strong. */
  background-image: url('images/haromszog-hullam.png');
  background-size: 100% 50%;
  background-position: bottom center;
}

.bg-fenypaszmak-01::before {
  /* the .png export was a mostly-opaque near-white shape that visually
     erased the section's beige background — using the pre-flattened .jpg
     photo instead, confined to the top of the section so the beige still
     shows through the rest of it. */
  background-image: url('images/fenypaszmak-01.jpg');
  background-size: 100% 40%;
  background-position: top center;
}

.bg-fenypaszmak-02::before {
  background-image: url('images/fenypaszmak-02.jpg');
  background-size: 100% 45%;
  background-position: top center;
}

.bg-hullam-forditott::before {
  /* too strong at full-section cover — shown only in the bottom half,
     growing up from the bottom edge, per feedback on the live section. */
  background-image: url('images/hullam-forditott.png');
  background-size: 100% 50%;
  background-position: bottom center;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.6;
  font-size: 16px;
}

img,
video {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

.icon-arrow {
  height: 30px;
  width: auto;
  flex-shrink: 0;
  fill: var(--color-accent);
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

h1, h2, h3 {
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  margin: 0 0 0.6em;
  line-height: 1.05;
}

/* ---------------------------------------------------------------------- */
/* Header / nav                                                           */
/* ---------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(232, 231, 227, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--color-border);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(1rem, 3vw, 2.5rem);
  padding: 1.1rem var(--gutter);
  max-width: var(--max-width);
  margin: 0 auto;
}

.site-header__brand {
  margin-right: auto;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.95rem;
  text-decoration: none;
}

.nav-link {
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-decoration: none;
  white-space: nowrap;
}

.nav-link:hover {
  color: var(--color-accent);
}

.nav-sep {
  color: var(--color-border);
  font-weight: 400;
}

.nav-toggle {
  display: none;
}

.btn-outline {
  display: inline-block;
  padding: 0.6rem 1.3rem;
  border: 5px solid var(--color-accent);
  color: var(--color-text);
  text-decoration: none;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  white-space: nowrap;
  transition: background 0.15s ease, color 0.15s ease;
}

.btn-outline:hover {
  background: var(--color-accent);
  color: #fff;
}

/* ---------------------------------------------------------------------- */
/* Reveal-on-scroll (lightweight animation layer)                         */
/* ---------------------------------------------------------------------- */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

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

/* ---------------------------------------------------------------------- */
/* Hero                                                                    */
/* ---------------------------------------------------------------------- */

.hero {
  position: relative;
  padding: clamp(2.5rem, 8vw, 6rem) var(--gutter) clamp(3rem, 8vw, 5rem);
}

.hero__inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

/* Photo, name, decor circle and accent line are all baked into this one
   pre-composited transparent PNG (see the comment above renderHero in
   homepage.js) — no layout of our own needed beyond sizing it. */
.hero__composite {
  width: 100%;
  height: auto;
}

/* ---------------------------------------------------------------------- */
/* Intro / timeline                                                       */
/* ---------------------------------------------------------------------- */

.intro {
  padding: clamp(2rem, 6vw, 4rem) var(--gutter) clamp(3rem, 8vw, 5rem);
}

.intro__inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.intro__greeting {
  font-size: clamp(2rem, 5vw, 3.2rem);
  margin-bottom: 0.5em;
}

.intro__bio {
  max-width: 640px;
  font-size: 1.05rem;
}

.intro__bio strong.accent {
  color: var(--color-accent);
  font-weight: 700;
}

.timeline {
  margin-top: clamp(3rem, 8vw, 5rem);
  overflow-x: auto;
  padding-bottom: 1rem;
}

.timeline__img {
  width: 100%;
  min-width: 820px;
  height: auto;
}

/* ---------------------------------------------------------------------- */
/* Statement sections (Amikor / Teret / Fontos)                           */
/* ---------------------------------------------------------------------- */

.statement {
  padding: clamp(3rem, 8vw, 5.5rem) var(--gutter);
  /* explicit (not inherited-through) background so mix-blend-mode on the
     Amikor graphic has an opaque layer to blend against inside this
     section's isolated stacking context (isolation: isolate, set by the
     .texture-* classes, otherwise blocks blending with body's background) */
  background: var(--color-bg);
}

.statement__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}

.statement__title {
  font-size: clamp(2rem, 5vw, 3rem);
}

.statement__body strong.accent {
  color: var(--color-accent);
  font-weight: 700;
}

.statement__media img,
.statement__media video {
  width: 100%;
  object-fit: cover;
  aspect-ratio: 7 / 4.5;
}

.statement__media--graphic {
  max-width: 420px;
  margin: 0 auto;
}

/* Four stacked layers, back to front: the section's own background
   color (.statement), its wave-texture background image (.bg-hullam's
   ::before), a white radial glow (this ::before), and the animation on
   top. The video's white background is multiply-blended away, so the
   glow (and, past its fade, the texture/color) shows through wherever
   the video isn't the stone shapes. */
.statement__graphic-frame {
  position: relative;
}

.statement__graphic-frame::before {
  content: '';
  position: absolute;
  inset: -40%;
  border-radius: 50%;
  background: radial-gradient(circle, #fff 0%, rgba(255, 255, 255, 0.6) 25%, rgba(255, 255, 255, 0.0) 50%, rgba(255, 255, 255, 0) 90%);
}

.statement__graphic-frame img,
.statement__graphic-frame video {
  position: relative;
  display: block;
  width: 100%;
  height: auto;
  /* the source has a baked-in white background (no transparency
     available) — multiply-blend it onto the glow/texture/color stack
     behind it so the white disappears and only the stone shapes remain
     visible */
  mix-blend-mode: multiply;
}

.photo-caption {
  margin-top: 0.6rem;
  font-size: 0.72rem;
  font-style: italic;
  color: var(--color-text-muted);
  white-space: pre-line;
}

.photo-caption__rule {
  font-style: normal;
  color: var(--color-text);
  font-weight: 700;
  margin-right: 0.15em;
}

/* ---------------------------------------------------------------------- */
/* Class benefits (Óráim)                                                 */
/* ---------------------------------------------------------------------- */

.benefits {
  padding: clamp(3rem, 8vw, 5.5rem) var(--gutter);
}

.benefits__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}

.benefits__title {
  font-size: clamp(2rem, 5vw, 2.8rem);
  margin-bottom: 0;
}

.benefits__subtitle {
  font-weight: 400;
  text-transform: none;
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  color: var(--color-text-muted);
}

.benefits__list {
  margin: 0 0 1.5rem;
  padding-left: 1.1rem;
}

.benefits__list li {
  margin-bottom: 0.5rem;
}

.benefits__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-decoration: none;
  color: var(--color-text);
}

.benefits__cta:hover {
  color: var(--color-accent);
}

.benefits__media img,
.benefits__media video {
  width: 100%;
  aspect-ratio: 7 / 4.5;
  object-fit: cover;
}

/* ---------------------------------------------------------------------- */
/* Methods intro + comparison chart                                       */
/* ---------------------------------------------------------------------- */

.methods-intro {
  padding: clamp(3rem, 8vw, 5.5rem) var(--gutter) clamp(2rem, 6vw, 3rem);
}

.methods-intro__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}

.methods-intro__title {
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: 0.2em;
}

.methods-intro__subtitle {
  text-transform: none;
  font-weight: 400;
  font-size: 1.2rem;
  color: var(--color-text-muted);
  margin-bottom: 1.2rem;
}

.methods-intro__body strong.accent {
  color: var(--color-accent);
  font-weight: 700;
}

.methods-intro__media img,
.methods-intro__media video {
  width: 100%;
  aspect-ratio: 7 / 4.5;
  object-fit: cover;
}

/* ---------------------------------------------------------------------- */
/* Method detail sections                                                 */
/* ---------------------------------------------------------------------- */

.method {
  padding: clamp(3rem, 8vw, 5.5rem) var(--gutter);
}

.method__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}

.method__eyebrow {
  font-style: italic;
  font-weight: 400;
  text-transform: none;
  font-size: 0.95rem;
  color: var(--color-text-muted);
  margin: -0.4em 0 1em;
}

.method__title {
  font-size: clamp(2rem, 5vw, 2.8rem);
}

.method__body strong.accent {
  color: var(--color-accent);
  font-weight: 700;
}

.method__bullets {
  margin: 1rem 0;
  padding-left: 1.1rem;
}

.method__bullets li {
  margin-bottom: 0.4rem;
}

.method__secondary {
  margin-top: 1.2rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--color-border);
}

.method__actions {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

.method__actions--under-photo {
  margin-top: 1rem;
  display: flex;
  justify-content: center;
}

.method__link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-decoration: none;
}

.method__link:hover {
  color: var(--color-accent);
}

.method__media img,
.method__media video {
  width: 100%;
  aspect-ratio: 7 / 4.5;
  object-fit: cover;
}

/* ---------------------------------------------------------------------- */
/* Class types (Óratípusok)                                               */
/* ---------------------------------------------------------------------- */

.class-type {
  padding: clamp(3rem, 8vw, 0.5rem) var(--gutter);
}

.class-type__inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.class-type__grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}

/* No photo (Reset/Release, Strength & Control) — per the PDF these use the
   full section width as two columns (text | who-it's-for/what-to-expect),
   not a single narrow text column with empty space beside it. */
.class-type__grid--full {
  grid-template-columns: 5fr 7fr;
}

/* Bullet-pair-only entries (no title/body, e.g. Bowen's "kinek ajánlott" /
   "mire számíthatsz" pair) skip the empty primary column entirely. */
.class-type__grid--aside-only {
  grid-template-columns: 1fr;
}

.class-type__aside .class-type__columns {
  margin-top: 0;
}

.class-type__footnote--full {
  grid-column: 1 / -1;
}

.class-type__title {
  font-size: clamp(2rem, 5vw, 2.8rem);
}

.class-type__body strong.accent {
  color: var(--color-accent);
  font-weight: 700;
}

.class-type__media img,
.class-type__media video {
  width: 100%;
  aspect-ratio: 7 / 4.5;
  object-fit: cover;
}

.class-type__columns {
  margin-top: 1.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
}

.class-type__columns h4 {
  font-style: italic;
  font-weight: 400;
  text-transform: none;
  font-size: 1.15rem;
  margin: 0 0 0.6em;
}

.class-type__columns ul {
  margin: 0;
  padding-left: 1.1rem;
}

.class-type__columns li {
  margin-bottom: 0.4rem;
  font-size: 0.95rem;
}

.class-type__col-action {
  margin-top: 1.25rem;
}

.class-type__footnote {
  margin-top: 1.5rem;
  font-style: italic;
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

/* ---------------------------------------------------------------------- */
/* Órarend (Schedule)                                                      */
/* ---------------------------------------------------------------------- */

.schedule {
  padding: clamp(3rem, 8vw, 6rem) var(--gutter);
  background: var(--color-bg-alt);
  text-align: center;
}

.schedule__inner {
  max-width: 640px;
  margin: 0 auto;
}

.schedule__title {
  font-size: clamp(1.8rem, 4vw, 2.4rem);
}

.schedule__body {
  margin-bottom: 1.5rem;
  color: var(--color-text-muted);
}

/* ---------------------------------------------------------------------- */
/* Árak (Pricing)                                                          */
/* ---------------------------------------------------------------------- */

.pricing {
  padding: clamp(3rem, 8vw, 6rem) var(--gutter);
}

.pricing__inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.pricing__title {
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  margin-bottom: 1.5rem;
}

.pricing__columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 6vw, 4rem);
}

.pricing__subtitle {
  font-size: 1rem;
  letter-spacing: 0.06em;
  color: var(--color-accent);
  margin-bottom: 1rem;
}

.pricing__list {
  list-style: none;
  margin: 0 0 2rem;
  padding: 0;
}

.pricing__list li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--color-border);
}

.pricing__label {
  color: var(--color-text);
}

.pricing__price {
  color: var(--color-text-muted);
  white-space: nowrap;
  text-align: right;
}

.pricing__note {
  margin-top: 1rem;
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

/* ---------------------------------------------------------------------- */
/* Módszerek (Methods) page — FAQ groups                                   */
/* ---------------------------------------------------------------------- */

.methods-page-heading {
  padding: clamp(2.5rem, 6vw, 4rem) var(--gutter) 0;
}

.methods-page-heading__title {
  font-size: clamp(2.2rem, 6vw, 3.2rem);
}

.method-group {
  padding: clamp(2.5rem, 6vw, 4rem) var(--gutter);
}

.method-group__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: clamp(2rem, 6vw, 4rem);
  align-items: start;
}

.method-group__media img,
.method-group__media video {
  width: 100%;
  height: auto;
}

.method-group__title {
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  margin-bottom: 1.25rem;
}

.faq-item {
  border-bottom: 1px solid var(--color-border);
  padding: 1rem 0;
}

.faq-item__question {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
}

.faq-item__question::-webkit-details-marker {
  display: none;
}

.faq-item__question::before {
  content: '+';
  display: inline-block;
  width: 1.2em;
  color: var(--color-accent);
}

.faq-item[open] .faq-item__question::before {
  content: '–';
}

.faq-item__answer {
  margin-top: 0.75rem;
  color: var(--color-text-muted);
}

/* ---------------------------------------------------------------------- */
/* Footer / Kapcsolat / Impresszum                                        */
/* ---------------------------------------------------------------------- */

.site-footer {
  background: var(--color-bg-alt);
  color: var(--color-text);
  padding: clamp(3rem, 8vw, 5rem) var(--gutter) 2.5rem;
}

.site-footer__inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.site-footer__title {
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  color: var(--color-text);
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 6vw, 4rem);
  margin-top: 1.5rem;
}

.site-footer a.btn-outline {
  border-color: var(--color-accent);
  color: var(--color-text);
}

.site-footer a.btn-outline:hover {
  background: var(--color-accent);
  color: #fff;
}

.site-footer__contact p {
  margin: 0.3em 0;
}

.site-footer__founder {
  font-weight: 600;
  margin-bottom: 0.6em !important;
}

.site-footer__address {
  color: var(--color-text-muted);
}

.site-footer__contact a {
  text-decoration: none;
}

.site-footer__contact a:hover {
  color: var(--color-accent);
}

.site-footer__impresszum {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-border);
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

.site-footer__impresszum h3 {
  color: inherit;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  margin-bottom: 0.5em;
}

.site-footer__bottom {
  margin-top: 2rem;
  font-size: 0.75rem;
  color: var(--color-text-muted);
}

/* ---------------------------------------------------------------------- */
/* Status                                                                  */
/* ---------------------------------------------------------------------- */

.status {
  margin: 2rem var(--gutter);
  padding: 1rem 1.25rem;
  border: 1px solid var(--color-border);
  background: var(--color-bg-alt);
}

.status--error {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.status[hidden] {
  display: none;
}

/* ---------------------------------------------------------------------- */
/* Responsive                                                              */
/* ---------------------------------------------------------------------- */

@media (max-width: 860px) {
  .site-header__inner {
    flex-wrap: wrap;
    row-gap: 0.75rem;
  }

  .statement__inner,
  .benefits__inner,
  .methods-intro__inner,
  .method__inner,
  .class-type__grid,
  .site-footer__grid,
  .pricing__columns,
  .method-group__inner {
    grid-template-columns: 1fr;
  }

  .class-type__columns {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .nav-link:not(.btn-outline),
  .nav-sep {
    display: none;
  }
}
