/* ==========================================================================
   NYÁRI MATEK-LÁNC – ÖNÁLLÓ STÍLUSLAP
   (Fraunces + Inter, MatekStream paletta, semmi külső függőség)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:wght@400;500;600;700&family=Inter:wght@400;500;600;700&display=swap');

:root {
  --orange: #E8721C;
  --orange-dark: #d65d0a;
  --cream: #FBF6EC;
  --ink: #2a241e;
  --muted: #6b6157;
}

/* --- Globális body/alapstílus (mivel a styles.css nincs betöltve) --------- */

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  color: var(--ink);
  background: white;
  line-height: 1.6;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--orange);
  text-decoration: underline;
  text-underline-offset: 2px;
}

a:hover {
  color: var(--orange-dark);
}

p {
  font-size: 1rem;
  margin: 0 0 1rem 0;
}

/* Quarto a fő tartalmat #quarto-content vagy hasonlóba teszi —
   biztosítjuk, hogy a teljes szélességet kapjuk */
main, #quarto-content, .quarto-container {
  max-width: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

/* --- Közös szekció-tipográfia ---------------------------------------------- */

.section-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 5rem 1.5rem;
}

.section-inner-narrow {
  max-width: 720px;
  margin: 0 auto;
  padding: 5rem 1.5rem;
  text-align: center;
}

.section-h {
  font-family: 'Fraunces', serif;
  font-size: clamp(1.5rem, 2.8vw, 2rem);
  font-weight: 600;
  line-height: 1.25;
  margin: 0 0 1rem 0;
  text-align: center;
}

.section-sub-h {
  text-align: center;
  font-size: 1.05rem;
  color: var(--muted, #6b6157);
  max-width: 640px;
  margin: 0 auto 3rem auto;
  line-height: 1.6;
}

/* --- HERO ------------------------------------------------------------------ */

.hero-lanc {
  background:
    radial-gradient(ellipse at top right, rgba(232, 114, 28, 0.12), transparent 60%),
    radial-gradient(ellipse at bottom left, rgba(232, 114, 28, 0.06), transparent 50%),
    var(--cream, #FBF6EC);
  padding: 6rem 1.5rem 5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-lanc-inner {
  max-width: 780px;
  margin: 0 auto;
}

.hero-lanc-eyebrow {
  display: inline-block;
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  color: var(--orange, #E8721C);
  background: rgba(232, 114, 28, 0.1);
  padding: 0.4rem 1rem;
  border-radius: 999px;
  margin-bottom: 2rem;
}

.hero-lanc-title {
  font-family: 'Fraunces', serif;
  font-size: clamp(2rem, 5vw, 3.4rem) !important;
  font-weight: 600 !important;
  line-height: 1.1 !important;
  margin: 0 0 1.5rem 0 !important;
  color: var(--ink, #2a241e) !important;
  text-align: center !important;
}

.hero-lanc-sub {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  line-height: 1.5;
  color: var(--ink, #2a241e);
  margin-bottom: 2.5rem;
  max-width: 580px;
  margin-left: auto;
  margin-right: auto;
}

.hero-lanc-sub strong {
  font-weight: 600;
}

.hero-lanc-meta {
  margin-top: 1.5rem;
  font-size: 0.88rem;
  color: var(--muted, #6b6157);
}

/* --- Elsődleges gomb (helyi, ha még nincs a styles.css-ben) ---------------- */

.btn-primary-lanc {
  display: inline-block;
  background: var(--orange, #E8721C);
  color: white !important;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 1.05rem;
  padding: 1rem 2.2rem;
  border-radius: 8px;
  text-decoration: none !important;
  box-shadow: 0 4px 0 rgba(0, 0, 0, 0.15), 0 4px 12px rgba(232, 114, 28, 0.25);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  border: none;
  cursor: pointer;
}

.btn-primary-lanc:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 0 rgba(0, 0, 0, 0.15), 0 8px 16px rgba(232, 114, 28, 0.3);
}

.btn-primary-lanc:active {
  transform: translateY(2px);
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.15);
}

.btn-large {
  font-size: 1.2rem;
  padding: 1.15rem 2.8rem;
}

/* --- PROBLÉMA SZEKCIÓ ------------------------------------------------------ */

.section-probléma {
  background: white;
}

.problem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin: 3rem 0;
}

.problem-card {
  background: var(--cream, #FBF6EC);
  border-radius: 12px;
  padding: 1.8rem;
  line-height: 1.6;
  border-left: 3px solid rgba(232, 114, 28, 0.4);
}

.problem-card strong {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--ink, #2a241e);
  font-size: 1.05rem;
}

.problem-conclusion {
  text-align: center;
  font-family: 'Fraunces', serif;
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  font-style: italic;
  color: var(--ink, #2a241e);
  max-width: 720px;
  margin: 0 auto;
  line-height: 1.5;
  padding-top: 2rem;
}

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

/* --- MEGOLDÁS / SEINFELD --------------------------------------------------- */

.section-megoldas {
  background: var(--cream, #FBF6EC);
}

.megoldas-flex {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 4rem;
  align-items: center;
}

.megoldas-szoveg blockquote {
  border-left: 3px solid var(--orange, #E8721C);
  padding: 0.5rem 1.2rem;
  margin: 1.5rem 0;
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-size: 1.1rem;
  line-height: 1.5;
  color: var(--ink, #2a241e);
  background: rgba(255, 255, 255, 0.5);
  border-radius: 0 8px 8px 0;
}

/* Naptár-grid X-ekkel a vizuál szekcióban */

.lanc-naptar {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
  max-width: 360px;
  margin: 0 auto;
  padding: 1.5rem;
  background: white;
  border-radius: 16px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
}

.lanc-cell {
  aspect-ratio: 1;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.04);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Fraunces', serif;
  font-size: 1.4rem;
  font-weight: 600;
  color: transparent;
}

.lanc-cell.done {
  background: var(--orange, #E8721C);
  color: white;
}

.lanc-cell.today {
  background: white;
  border: 2px dashed var(--orange, #E8721C);
  color: var(--orange, #E8721C);
  animation: lanc-pulse 2s ease-in-out infinite;
}

@keyframes lanc-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

@media (max-width: 768px) {
  .megoldas-flex {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .lanc-cell.today {
    animation: none;
  }
}

/* --- HOGYAN MŰKÖDIK -------------------------------------------------------- */

.section-hogyan {
  background: white;
}

.hogyan-steps {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem 3rem;
  margin-top: 3rem;
}

.hogyan-step {
  position: relative;
  padding-left: 4.5rem;
  line-height: 1.6;
}

.hogyan-num {
  position: absolute;
  left: 0;
  top: 0;
  width: 3rem;
  height: 3rem;
  background: var(--orange, #E8721C);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Fraunces', serif;
  font-size: 1.4rem;
  font-weight: 600;
}

.hogyan-step strong {
  display: block;
  margin-bottom: 0.4rem;
  color: var(--ink, #2a241e);
  font-size: 1.1rem;
}

@media (max-width: 768px) {
  .hogyan-steps {
    grid-template-columns: 1fr;
  }
}

/* --- ÉVFOLYAMOK ------------------------------------------------------------ */

.section-evfolyamok {
  background: var(--cream, #FBF6EC);
}

.evf-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.8rem;
}

.evf-card {
  background: white;
  border-radius: 14px;
  padding: 2rem 1.8rem;
  border-top: 4px solid var(--orange, #E8721C);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.04);
}

.evf-card h3 {
  font-family: 'Fraunces', serif;
  font-size: 1.2rem;
  font-weight: 600;
  margin: 0 0 0.3rem 0;
  color: var(--ink, #2a241e);
}

.evf-szubcim {
  color: var(--orange, #E8721C);
  font-style: italic;
  margin-bottom: 1.2rem;
  font-size: 0.95rem;
}

.evf-card ul {
  list-style: none;
  padding: 0;
  margin: 0 0 1.2rem 0;
}

.evf-card li {
  position: relative;
  padding-left: 1.6rem;
  margin-bottom: 0.5rem;
  line-height: 1.5;
}

.evf-card li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--orange, #E8721C);
  font-weight: 700;
}

.evf-megjegyzes {
  background: rgba(232, 114, 28, 0.06);
  border-radius: 8px;
  padding: 0.9rem 1rem;
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--ink, #2a241e);
  font-style: italic;
}

/* Az általános iskolásoknak más színű hangsúly */
.evf-card.evf-8 {
  border-top-color: #4a90c2;
}
.evf-card.evf-8 .evf-szubcim {
  color: #4a90c2;
}
.evf-card.evf-8 li::before {
  color: #4a90c2;
}
.evf-card.evf-8 .evf-megjegyzes {
  background: rgba(74, 144, 194, 0.08);
}

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

/* --- RÓLAM ----------------------------------------------------------------- */

.section-rolam {
  background: white;
}

.rolam-flex {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 3.5rem;
  align-items: center;
}

.rolam-foto {
  text-align: center;
}

.rolam-img {
  width: 100%;
  max-width: 320px;
  border-radius: 14px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.1);
}

.rolam-szoveg {
  line-height: 1.65;
}

.rolam-szoveg p {
  font-size: 1rem;
  margin-bottom: 1.1rem;
}

.rolam-szoveg .section-h {
  text-align: left;
}

.rolam-szoveg p {
  margin-bottom: 1.1rem;
}

@media (max-width: 768px) {
  .rolam-flex {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .rolam-szoveg .section-h {
    text-align: center;
  }
}

/* --- MIT KAPSZ ------------------------------------------------------------- */

.section-kapsz {
  background: var(--cream, #FBF6EC);
}

.kapsz-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
  margin-top: 1.5rem;
}

.kapsz-item {
  background: white;
  border-radius: 12px;
  padding: 1.5rem;
  line-height: 1.55;
  font-size: 0.97rem;
  border-left: 3px solid var(--orange, #E8721C);
}

.kapsz-item strong {
  display: block;
  margin-bottom: 0.3rem;
  color: var(--ink, #2a241e);
}

@media (max-width: 980px) {
  .kapsz-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

/* --- BEIRATKOZÁS / ŰRLAP --------------------------------------------------- */

.section-form {
  background:
    radial-gradient(ellipse at top, rgba(232, 114, 28, 0.1), transparent 60%),
    white;
  scroll-margin-top: 2rem;
}

.form-keret {
  max-width: 540px;
  margin: 0 auto;
  background: white;
  border-radius: 16px;
  padding: 2.5rem;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(232, 114, 28, 0.15);
}

.form-megjegyzes {
  text-align: center;
  font-size: 0.85rem;
  color: var(--muted, #6b6157);
  margin-top: 1.5rem;
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
}

/* Mautic-űrlap stílusbeállítások (a generált űrlapra ráhúzva) */
.form-keret form {
  font-family: 'Inter', sans-serif;
}

.form-keret input[type="text"],
.form-keret input[type="email"],
.form-keret select {
  width: 100%;
  padding: 0.85rem 1rem;
  font-size: 1rem;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-family: 'Inter', sans-serif;
  margin-bottom: 1rem;
  background: white;
  transition: border-color 0.15s ease;
}

.form-keret input:focus,
.form-keret select:focus {
  outline: none;
  border-color: var(--orange, #E8721C);
  box-shadow: 0 0 0 3px rgba(232, 114, 28, 0.15);
}

.form-keret button[type="submit"] {
  width: 100%;
  background: var(--orange, #E8721C);
  color: white;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 1.05rem;
  padding: 1rem;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 0 rgba(0, 0, 0, 0.15);
  transition: transform 0.15s ease;
}

.form-keret button[type="submit"]:hover {
  transform: translateY(-1px);
}

/* --- GYIK ------------------------------------------------------------------ */

.section-gyik {
  background: white;
}

.gyik-lista {
  max-width: 720px;
  margin: 2rem auto 0;
}

.gyik-item {
  background: var(--cream, #FBF6EC);
  border-radius: 10px;
  margin-bottom: 0.8rem;
  padding: 0;
  overflow: hidden;
  transition: box-shadow 0.2s ease;
  font-size: 0.98rem;
}

.gyik-item[open] {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.gyik-item summary {
  cursor: pointer;
  padding: 1rem 1.3rem;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  font-size: 1.2rem;
  line-height: 1.4;
  list-style: none;
  position: relative;
  padding-right: 3rem;
  color: var(--ink);
}

.gyik-item summary::-webkit-details-marker {
  display: none;
}

.gyik-item summary::after {
  content: '+';
  position: absolute;
  right: 1.3rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--orange);
  font-size: 1.3rem;
  font-weight: 400;
  transition: transform 0.2s ease;
}

.gyik-item[open] summary::after {
  content: '−';
  transform: translateY(-50%) rotate(0deg);
}

.gyik-item > *:not(summary) {
  padding: 0 1.3rem 1.1rem 1.3rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--ink);
}

.gyik-item > div:not(summary) p,
.gyik-item p {
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0;
}

/* Biztosíték: a Quarto-téma ne tudja felülírni a GYIK szövegét */
.section-gyik .gyik-item :not(summary) {
  font-size: 0.95rem;
}

/* --- ZÁRÓ CTA -------------------------------------------------------------- */

.section-zaro-cta {
  background:
    linear-gradient(135deg, var(--orange, #E8721C) 0%, #d65d0a 100%);
  color: white;
}

.section-zaro-cta .section-h {
  color: white !important;
  text-align: center;
}

.zaro-szoveg {
  font-family: 'Fraunces', serif;
  font-size: 1.2rem;
  font-style: italic;
  line-height: 1.6;
  margin: 1rem 0 2.5rem 0;
  text-align: center;
  opacity: 0.95;
}

.section-zaro-cta .btn-primary-lanc {
  background: white;
  color: var(--orange, #E8721C) !important;
  box-shadow: 0 4px 0 rgba(0, 0, 0, 0.2), 0 4px 16px rgba(0, 0, 0, 0.15);
}

.section-zaro-cta .btn-primary-lanc:hover {
  background: white;
  transform: translateY(-2px);
}
