/* ============================================
   BASE.CSS — Reset, változók, tipográfia
   fajdalommentesfogaszat.hu
   ============================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Színek */
  --nav:          #2C3E2D;
  --nav-accent:   #8DB87A;
  --hero-bg:      #F5F1E8;
  --cream:        #F2EFE6;
  --cream-dark:   #E2DDD0;
  --green:        #5A8C45;
  --green-mid:    #8DB87A;
  --green-light:  #E8F2E3;
  --green-dark:   #2C3E2D;
  --ink:          #2C3E2D;
  --ink-mid:      #566357;
  --ink-soft:     #607260;
  --white:        #FDFCFA;

  /* Tipográfia */
  --sans: 'Plus Jakarta Sans', system-ui, sans-serif;

  /* Layout */
  --max:     1200px;
  --content: 780px;

  /* Spacing */
  --section-pad: 80px;
  --radius-sm:   8px;
  --radius-md:   12px;
  --radius-lg:   16px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--white);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
em, i { font-style: normal; }
img { max-width: 100%; height: auto; display: block; }

/* Tipográfia */
h1 { font-size: clamp(28px, 3.5vw, 42px); font-weight: 700; line-height: 1.2; letter-spacing: -0.02em; }
h2 { font-size: clamp(22px, 2.5vw, 32px); font-weight: 700; line-height: 1.25; letter-spacing: -0.02em; }
h3 { font-size: 18px; font-weight: 600; line-height: 1.4; }
h4 { font-size: 16px; font-weight: 600; }
p  { font-size: 16px; color: var(--ink-mid); line-height: 1.8; margin-bottom: 16px; }
p:last-child { margin-bottom: 0; }

/* Segédosztályok */
.text-green  { color: var(--green); }
.text-soft   { color: var(--ink-soft); }
.text-center { text-align: center; }

.section-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 12px;
  display: block;
}

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 5%;
}

section { padding: var(--section-pad) 5%; }

/* Gombok */
.btn-primary {
  display: inline-block;
  background: var(--green);
  color: var(--white);
  font-size: 15px;
  font-weight: 500;
  padding: 13px 26px;
  border-radius: var(--radius-sm);
  transition: background 0.2s;
}
.btn-primary:hover { background: var(--green-dark); }

.btn-secondary {
  display: inline-block;
  background: transparent;
  color: var(--ink);
  font-size: 15px;
  padding: 13px 26px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--cream-dark);
  transition: border-color 0.2s, background 0.2s;
}
.btn-secondary:hover { border-color: var(--ink-soft); background: var(--cream-dark); }

.btn-light {
  display: inline-block;
  background: var(--cream);
  color: var(--green-dark);
  font-size: 15px;
  font-weight: 600;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  transition: background 0.2s;
}
.btn-light:hover { background: var(--white); }

/* Info boxok */
.highlight-box {
  background: var(--green-light);
  border-left: 4px solid var(--green);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 20px 24px;
  margin: 24px 0;
}
.highlight-box p { color: var(--ink); font-weight: 500; margin: 0; }

.warning-box {
  background: #FFF8EC;
  border-left: 4px solid #E8A020;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 20px 24px;
  margin: 24px 0;
}
.warning-box p { color: #5C3D0A; margin: 0; }

.danger-box {
  background: #FFF2F2;
  border-left: 4px solid #D04040;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 20px 24px;
  margin: 24px 0;
}
.danger-box p { color: #6B1A1A; margin: 0; }

/* Checklist */
.checklist { list-style: none; margin: 20px 0; }
.checklist li {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 8px 0; border-bottom: 1px solid var(--cream-dark);
  font-size: 15px; color: var(--ink-mid); line-height: 1.6;
}
.checklist li:last-child { border-bottom: none; }
.check-icon {
  width: 20px; height: 20px;
  background: var(--green-light); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; margin-top: 2px;
}
.check-icon svg { width: 10px; height: 10px; stroke: var(--green); fill: none; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }

/* Steps */
.steps { list-style: none; margin: 24px 0; }
.step { display: flex; gap: 20px; padding: 20px 0; border-bottom: 1px solid var(--cream-dark); }
.step:last-child { border-bottom: none; }
.step-num {
  width: 36px; height: 36px;
  background: var(--green); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; font-size: 14px; font-weight: 700; color: var(--white);
}
.step-title { font-size: 16px; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.step-desc  { font-size: 14px; color: var(--ink-mid); line-height: 1.6; }

/* Breadcrumb */
.breadcrumb { background: var(--cream); padding: 12px 5%; border-bottom: 1px solid var(--cream-dark); }
.breadcrumb-inner { max-width: var(--max); margin: 0 auto; font-size: 13px; color: var(--ink-soft); display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.breadcrumb a { color: var(--green); }
.breadcrumb-sep { color: var(--cream-dark); }

/* Responsive */
@media (max-width: 768px) {
  :root { --section-pad: 56px; }
  h1 { font-size: 26px; line-height: 1.25; }
  h2 { font-size: 20px; }
  h3 { font-size: 17px; }
  p  { font-size: 15px; }
}
@media (max-width: 480px) {
  :root { --section-pad: 40px; }
  h1 { font-size: 24px; }
  h2 { font-size: 19px; }
  .container { padding: 0 4%; }
  section { padding: var(--section-pad) 4%; }
}

/* Audit improvements: keyboard focus, readable text and narrow screens. */
:focus-visible { outline: 3px solid #315f24; outline-offset: 4px; }
.site-nav :focus-visible, .site-footer :focus-visible { outline-color: #b9dfa5; }
.skip-link { position: absolute; left: 16px; top: -100px; z-index: 10010; background: white; padding: 12px; }
.skip-link:focus { top: 8px; }
h2[id] { scroll-margin-top: 90px; }
.article-body h2 { margin: 32px 0 16px; }
.article-body h3 { margin: 24px 0 12px; }
.article-body a:not(.link-card) { text-decoration: underline; text-underline-offset: 3px; }
.article-body { min-width: 0; }
.related-heading { font-size: 15px; margin: 0 0 4px !important; }
.editorial-note { max-width: 1080px; margin: 24px auto; padding: 20px 5%; }
.editorial-note p { font-size: 14px; }
@media (prefers-reduced-motion: reduce) {
 html { scroll-behavior: auto; }
 *, *::before, *::after { animation: none !important; transition: none !important; }
}
@media (max-width: 600px) {
 div[style*="display: flex"][style*="border-bottom"] { flex-wrap: wrap; }
 span[style*="min-width: 200px"], span[style*="min-width: 180px"] { min-width: 0 !important; }
 .fogaszat-card > div:first-child { flex-wrap: wrap; }
 .fogaszat-card a { overflow-wrap: anywhere; }
 .blog-header { flex-wrap: wrap; gap: 16px; }
}
