:root {
  --color-bg: #f8f6f1;
  --color-bg-alt: #f1ece2;
  --color-surface: #ffffff;
  --color-text: #262420;
  --color-text-muted: #5c584f;
  --color-primary: #3f5344;
  --color-primary-dark: #2e3e32;
  --color-accent: #8c4a26;
  --color-border: #e4ddce;

  --font-heading: "Lora", serif;
  --font-body: "Raleway", sans-serif;

  --space-sm: 16px;
  --space-md: 24px;
  --space-lg: 48px;
  --space-xl: 96px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

h1,
h2,
h3 {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--color-primary-dark);
  line-height: 1.25;
}

h2 {
  font-size: 2rem;
  margin-bottom: var(--space-md);
}

h3 {
  font-size: 1.2rem;
  margin-bottom: 8px;
}

a {
  color: var(--color-accent);
}

p,
li {
  text-align: justify;
}

.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Accessibility */
.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
  background: var(--color-primary-dark);
  color: #fff;
  padding: 12px 20px;
  z-index: 100;
  border-radius: 0 0 6px 0;
}

.skip-link:focus {
  left: 0;
  top: 0;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 2px;
}

/* Hero */
.hero {
  position: relative;
  height: 70vh;
  min-height: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--color-primary-dark);
}

.hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.78;
  transform: scale(1.15);
  z-index: 1;
}

.hero-fade {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(
    to right,
    var(--color-bg) 0%,
    transparent 18%,
    transparent 82%,
    var(--color-bg) 100%
  );
  pointer-events: none;
}

.hero-white-block {
  position: relative;
  z-index: 3;
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 36px 54px;
  border-radius: 4px;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.hero-white-block h1 {
  font-size: 2.4rem;
  margin-bottom: 12px;
}

.hero-white-block p {
  text-align: center;
  color: var(--color-text-muted);
  font-size: 1.05rem;
  letter-spacing: 0.02em;
}

/* Page header (sub-pages) */
.page-header {
  background: var(--color-primary-dark);
  color: #ffffff;
  padding: var(--space-lg) 24px var(--space-md);
  text-align: center;
}

.page-header .home-link {
  display: inline-block;
  color: #f1ece2;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: var(--space-md);
}

.page-header .home-link:hover {
  text-decoration: underline;
}

.page-header h1 {
  color: #ffffff;
  font-size: 2rem;
  margin-bottom: 0;
}

/* Intro */
.intro {
  padding: var(--space-xl) 0;
  background: var(--color-bg);
}

.intro p {
  max-width: 680px;
  margin: 0 auto var(--space-md);
  font-size: 1.05rem;
  color: var(--color-text-muted);
  line-height: 1.8;
}

.intro p:last-child {
  margin-bottom: 0;
}

/* Generic section rhythm */
.section {
  padding: var(--space-xl) 0;
}

.section:nth-of-type(even) {
  background: var(--color-bg-alt);
}

.section-lead {
  max-width: 640px;
  color: var(--color-text-muted);
  font-size: 1.05rem;
  margin-bottom: var(--space-lg);
}

/* Bemutatkozás */
.bemutatkozas-grid {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: var(--space-lg);
  align-items: start;
}

.avatar-placeholder {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 600;
  flex-shrink: 0;
  overflow: hidden;
}

.avatar-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 27%;
  transform: scale(1.3);
}

.bemutatkozas-content p {
  color: var(--color-text-muted);
  margin-bottom: var(--space-sm);
  max-width: 640px;
}

.credentials {
  list-style: none;
  margin-top: var(--space-md);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.credentials li {
  position: relative;
  padding-left: 24px;
  color: var(--color-text);
  font-weight: 500;
}

.credentials li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-accent);
}

.pull-quote {
  border-left: 3px solid var(--color-accent);
  padding-left: var(--space-md);
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-style: italic;
  color: var(--color-primary-dark);
  margin: var(--space-lg) 0;
  max-width: 640px;
}

.closing-band {
  /* !important: must always win over the .section:nth-of-type(even)
     alternating background, regardless of this section's position
     in the page (which shifts whenever sections are added/removed). */
  background: var(--color-primary-dark) !important;
  color: #f1ece2;
}

.closing-band p {
  color: #f1ece2 !important;
}

.closing-band .pull-quote {
  border-left-color: rgba(255, 255, 255, 0.5);
  color: #ffffff;
}

/* Kapcsolat */
.kapcsolat-subtitle {
  color: var(--color-text-muted);
  font-size: 1.05rem;
  margin-bottom: var(--space-lg);
}

.contact-list {
  list-style: none;
  max-width: 480px;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.contact-list li {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.contact-list .contact-label {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--color-accent);
}

.contact-list .contact-value {
  font-size: 1.1rem;
  color: var(--color-text);
}

.contact-list a.contact-value {
  text-decoration: none;
}

.contact-list a.contact-value:hover {
  text-decoration: underline;
}

/* A Működési Kód (módszer) */
.argument-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.argument {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: var(--space-md);
}

.argument-number {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 600;
  color: var(--color-accent);
  line-height: 1;
}

.argument-content p {
  color: var(--color-text-muted);
  margin-bottom: var(--space-sm);
  max-width: 640px;
}

.argument-content p:last-child {
  margin-bottom: 0;
}

/* Mentorprogram */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

.feature-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: var(--space-md);
}

.feature-card p {
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  padding: 16px 32px;
  border-radius: 4px;
  transition: background-color 200ms ease-out, transform 150ms ease-out;
}

.btn-primary {
  background: var(--color-primary);
  color: #ffffff;
}

.btn-primary:hover {
  background: var(--color-primary-dark);
}

.btn-primary:active {
  transform: scale(0.98);
}

.cta-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-sm);
}

.cta-buttons .btn {
  width: 280px;
  text-align: center;
}

.table-scroll {
  max-width: 640px;
  overflow-x: auto;
  margin: var(--space-md) 0;
}

.module-table {
  width: 100%;
  min-width: 480px;
  border-collapse: collapse;
}

.module-table th,
.module-table td {
  text-align: left;
  padding: 14px 16px;
  border-bottom: 1px solid var(--color-border);
  vertical-align: top;
}

.module-table th {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--color-primary-dark);
  font-size: 0.95rem;
}

.module-table td {
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

.module-table td:first-child {
  font-weight: 600;
  color: var(--color-text);
  white-space: nowrap;
}

.table-note {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  font-style: italic;
  max-width: 640px;
}

.kinek-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
  margin-top: var(--space-md);
}

.kinek-grid ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.kinek-grid li {
  position: relative;
  padding-left: 24px;
  color: var(--color-text-muted);
}

.kinek-grid li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.kinek-yes li::before {
  background: var(--color-primary);
}

.kinek-no li::before {
  background: var(--color-accent);
}

/* Footer */
.site-footer {
  background: var(--color-primary-dark);
  color: #f1ece2;
}

.bottom-menu {
  display: flex;
  justify-content: center;
  gap: 48px;
  padding: 28px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.bottom-menu a {
  text-decoration: none;
  color: #f1ece2;
  font-weight: 600;
  font-size: 0.95rem;
}

.bottom-menu a:hover {
  color: #ffffff;
  text-decoration: underline;
}

.bottom-menu a[aria-current="page"] {
  color: #ffffff;
  border-bottom: 2px solid var(--color-accent);
  padding-bottom: 4px;
}

.footer-copy {
  text-align: center;
  padding: 20px 24px;
  font-size: 0.85rem;
  color: rgba(241, 236, 226, 0.7);
}

.legal-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 20px;
  padding: 16px 24px 0;
}

.legal-links a {
  color: rgba(241, 236, 226, 0.7);
  text-decoration: none;
  font-size: 0.78rem;
}

.legal-links a:hover {
  color: #ffffff;
  text-decoration: underline;
}

.legal-links a[aria-current="page"] {
  color: #ffffff;
  text-decoration: underline;
}

@media (max-width: 800px) {
  .bemutatkozas-grid {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .feature-grid,
  .kinek-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .hero-white-block {
    padding: 24px 28px;
  }
  .hero-white-block h1 {
    font-size: 1.7rem;
  }
  .bottom-menu {
    gap: 24px;
    flex-wrap: wrap;
  }
  .section {
    padding: var(--space-lg) 0;
  }
  .argument {
    grid-template-columns: 40px 1fr;
    gap: var(--space-sm);
  }
  .argument-number {
    font-size: 1.8rem;
  }
}
