/* =====================================================
   REBELT.HU – STÍLUSLAP
   ===================================================== */

/* === TOKENEK (az eredeti ReBelt színek) === */
:root {
  --primary: hsl(150 45% 35%);
  --primary-600: hsl(150 45% 30%);
  --primary-700: hsl(150 45% 24%);
  --primary-50: hsl(150 40% 96%);
  --primary-100: hsl(150 35% 92%);
  --accent: hsl(142 76% 60%);
  --accent-light: hsl(142 76% 74%);
  --accent-600: hsl(142 70% 52%);

  --fg: hsl(150 30% 15%);
  --muted: hsl(150 10% 38%);
  --bg: #fff;
  --bg-soft: hsl(150 20% 97.5%);
  --border: hsl(150 15% 88%);
  --danger: hsl(0 72% 46%);
  --success: hsl(150 45% 30%);

  --radius-sm: 0.5rem;
  --radius: 0.75rem;
  --radius-lg: 1.25rem;

  --shadow-sm: 0 1px 2px hsl(150 30% 15% / 0.06), 0 1px 3px hsl(150 30% 15% / 0.06);
  --shadow: 0 4px 12px -2px hsl(150 30% 15% / 0.08), 0 2px 4px -2px hsl(150 30% 15% / 0.05);
  --shadow-eco: 0 18px 40px -14px hsl(150 45% 35% / 0.35);
  --shadow-glow: 0 10px 40px -8px hsl(142 76% 60% / 0.55);

  --header-h: 72px;
  --container: 1200px;
  --gutter: clamp(1rem, 4vw, 2rem);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }

h1, h2, h3, p, figure, blockquote, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }

h1, h2, h3 {
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 800;
  text-wrap: balance;
}

a { color: inherit; text-decoration: none; }

button, input, textarea { font: inherit; color: inherit; }

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

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

/* Material Symbols ikon */
.icon {
  font-family: "Material Symbols Rounded";
  font-weight: normal;
  font-style: normal;
  font-size: 1.5rem;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  -webkit-font-feature-settings: "liga";
  font-feature-settings: "liga";
  -webkit-font-smoothing: antialiased;
  user-select: none;
  flex-shrink: 0;
}

.text-primary { color: var(--primary); }
.text-accent { color: var(--accent); }

.text-gradient {
  background: linear-gradient(135deg, var(--accent-light), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 1000;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  background: var(--fg);
  color: #fff;
  font-weight: 600;
}
.skip-link:focus { top: 1rem; }

/* === GOMBOK === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  padding: 0.7rem 1.5rem;
  border: 2px solid transparent;
  border-radius: var(--radius);
  font-weight: 650;
  font-size: 1rem;
  line-height: 1.2;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.btn .icon { font-size: 1.25rem; transition: transform 0.2s var(--ease); }
.btn:hover { transform: translateY(-2px); }
.btn:hover .icon { transform: translateX(3px); }
.btn:active { transform: translateY(0); }

.btn-sm { min-height: 2.5rem; padding: 0.5rem 1.1rem; font-size: 0.95rem; }
.btn-lg { min-height: 3.5rem; padding: 0.9rem 2rem; font-size: 1.1rem; }
.btn-block { width: 100%; }

.btn-accent { background: var(--accent); color: var(--fg); box-shadow: var(--shadow-glow); }
.btn-accent:hover { background: var(--accent-light); }

.btn-light { background: #fff; color: var(--fg); border-color: #fff; }
.btn-light:hover { background: transparent; color: #fff; }

.btn-primary { background: var(--primary); color: #fff; box-shadow: var(--shadow-eco); }
.btn-primary:hover { background: var(--primary-600); }

.btn[disabled] { opacity: 0.7; cursor: progress; transform: none; }

.spinner {
  width: 1.15rem;
  height: 1.15rem;
  border: 2.5px solid hsl(0 0% 100% / 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* === HEADER === */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--header-h);
  color: #fff;
  transition: background-color 0.3s ease, box-shadow 0.3s ease, height 0.3s ease;
}
.site-header.is-scrolled {
  background: hsl(150 45% 30% / 0.96);
  box-shadow: 0 6px 24px -10px hsl(150 45% 15% / 0.5);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 2rem;
}

.brand img { width: 110px; height: auto; }

.main-nav {
  display: flex;
  gap: 0.25rem;
  margin-left: auto;
}
.main-nav a {
  position: relative;
  padding: 0.5rem 0.85rem;
  font-weight: 550;
  color: hsl(0 0% 100% / 0.85);
  border-radius: var(--radius-sm);
  transition: color 0.2s ease, background-color 0.2s ease;
}
.main-nav a:hover,
.main-nav a.is-active { color: #fff; background: hsl(0 0% 100% / 0.1); }

@media (max-width: 860px) {
  .main-nav { display: none; }
  .header-inner { justify-content: space-between; }
}

/* === HERO === */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: calc(var(--header-h) + 3rem) 0 5rem;
  color: #fff;
  text-align: center;
  overflow: hidden;
  isolation: isolate;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(60% 50% at 85% 15%, hsl(142 76% 60% / 0.28), transparent 70%),
    radial-gradient(50% 45% at 10% 90%, hsl(142 76% 60% / 0.16), transparent 70%),
    linear-gradient(135deg, var(--primary-700) 0%, var(--primary) 55%, hsl(148 48% 40%) 100%);
}
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 2px 2px, hsl(0 0% 100% / 0.12) 1px, transparent 0);
  background-size: 36px 36px;
  -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 80%);
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 80%);
}

.hero-content {
  max-width: 920px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.75rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 1rem 0.45rem 0.75rem;
  border: 1px solid hsl(0 0% 100% / 0.25);
  border-radius: 999px;
  background: hsl(0 0% 100% / 0.08);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: hsl(0 0% 100% / 0.92);
}
.eyebrow .icon { font-size: 1.15rem; color: var(--accent); }

.hero h1 {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.75rem;
  font-size: clamp(2.5rem, 7vw, 4.75rem);
  line-height: 1.05;
}
.hero h1 .eyebrow { line-height: 1.4; }

.lead {
  max-width: 44rem;
  font-size: clamp(1.1rem, 2.2vw, 1.4rem);
  line-height: 1.6;
  color: hsl(0 0% 100% / 0.88);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-top: 0.5rem;
}

.scroll-hint {
  position: absolute;
  left: 50%;
  bottom: 1.5rem;
  translate: -50% 0;
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  color: hsl(0 0% 100% / 0.75);
  animation: bob 2.4s ease-in-out infinite;
}
.scroll-hint:hover { color: #fff; }
.scroll-hint .icon { font-size: 2rem; }
@keyframes bob { 50% { transform: translateY(6px); } }

@media (max-width: 480px) {
  .hero-actions { width: 100%; flex-direction: column; }
  .hero-actions .btn { width: 100%; }
  .scroll-hint { display: none; }
}

/* === SZEKCIÓK === */
.section {
  position: relative;
  padding: clamp(4rem, 9vw, 6.5rem) 0;
}
.section-soft { background: var(--bg-soft); }
.section-primary {
  background: linear-gradient(160deg, var(--primary-600), var(--primary));
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}

.dot-pattern {
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.1;
  background-image: radial-gradient(circle at 2px 2px, currentColor 1px, transparent 0);
  background-size: 40px 40px;
}

.section-head {
  max-width: 48rem;
  margin: 0 auto clamp(2.5rem, 6vw, 4rem);
  text-align: center;
}
.section-head h2 {
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: 1rem;
}
.section-head p {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--muted);
}
.section-primary .section-head p { color: hsl(0 0% 100% / 0.82); }

/* === KÁRTYÁK === */
.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 4vw, 2rem);
  box-shadow: var(--shadow);
}
.card h3 { font-size: 1.4rem; margin-bottom: 1.25rem; }

.card-primary {
  background: linear-gradient(150deg, var(--primary), var(--primary-600));
  border-color: transparent;
  color: #fff;
  box-shadow: var(--shadow-eco);
}

/* === MŰKÖDÉS === */
.process-layout {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  margin-bottom: clamp(3rem, 7vw, 5rem);
}

.process-photo {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-eco);
  aspect-ratio: 4 / 3;
  background: var(--primary-100);
}
.process-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}
.process-photo:hover img { transform: scale(1.03); }
.process-photo figcaption {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.9rem 0.45rem 0.6rem;
  border-radius: 999px;
  background: hsl(0 0% 100% / 0.92);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  font-size: 0.875rem;
  font-weight: 600;
  box-shadow: var(--shadow-sm);
}
.process-photo figcaption .icon { font-size: 1.1rem; color: var(--primary); }

.steps {
  display: grid;
  gap: 1rem;
  counter-reset: step;
}
.step {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  padding: 1.5rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
}
.step:hover { border-color: hsl(150 45% 35% / 0.35); box-shadow: var(--shadow-eco); }
.step-num {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-weight: 800;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.step h3 { font-size: 1.15rem; margin-bottom: 0.35rem; }
.step p { color: var(--muted); }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
.feature-card {
  padding: 2rem 1.75rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), box-shadow 0.3s ease, border-color 0.3s ease;
}
.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-eco);
  border-color: hsl(150 45% 35% / 0.3);
}
.feature-card h3 { font-size: 1.2rem; margin-bottom: 0.6rem; }
.feature-card p { color: var(--muted); }

.icon-badge {
  display: grid;
  place-items: center;
  width: 3.75rem;
  height: 3.75rem;
  margin-bottom: 1.5rem;
  border-radius: 1rem;
  background: var(--primary-100);
  color: var(--primary);
  transition: background-color 0.3s ease, color 0.3s ease;
}
.icon-badge .icon { font-size: 2rem; }
.feature-card:hover .icon-badge { background: var(--primary); color: #fff; }

@media (max-width: 1024px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .process-layout { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .feature-grid { grid-template-columns: 1fr; }
  .step { padding: 1.25rem; gap: 1rem; }
}

/* === HATÁS / STATISZTIKA === */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
.stat {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 2rem;
  border: 1px solid hsl(0 0% 100% / 0.18);
  border-radius: var(--radius-lg);
  background: hsl(0 0% 100% / 0.08);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  transition: background-color 0.3s ease, transform 0.3s var(--ease);
}
.stat:hover { background: hsl(0 0% 100% / 0.13); transform: translateY(-4px); }
.stat > .icon { font-size: 2.75rem; color: var(--accent); margin-bottom: 0.75rem; }
.stat-value {
  font-size: clamp(2.25rem, 4.5vw, 3rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.stat-label { color: hsl(0 0% 100% / 0.82); font-weight: 550; }

.impact-quote {
  max-width: 50rem;
  margin: clamp(3rem, 6vw, 4rem) auto 0;
  text-align: center;
  font-size: clamp(1.1rem, 2.2vw, 1.35rem);
  font-style: italic;
  line-height: 1.6;
  color: hsl(0 0% 100% / 0.92);
  text-wrap: balance;
}

@media (max-width: 1024px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .stats { grid-template-columns: 1fr; }
  .stat { padding: 1.5rem; }
}

/* === VÉLEMÉNYEK / PARTNEREK === */
.testimonials {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.testimonial {
  display: flex;
  flex-direction: column;
  padding: 2rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.3s ease, transform 0.3s var(--ease);
}
.testimonial:hover { box-shadow: var(--shadow-eco); transform: translateY(-4px); }
.quote-icon { font-size: 2.5rem; color: var(--primary); margin-bottom: 0.75rem; }
.testimonial blockquote {
  flex: 1;
  margin-bottom: 1.5rem;
  font-size: 1.075rem;
  font-style: italic;
  line-height: 1.65;
}
.testimonial figcaption {
  display: flex;
  flex-direction: column;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}
.testimonial figcaption span { font-size: 0.875rem; color: var(--muted); }

.partners {
  margin-top: clamp(3rem, 7vw, 4.5rem);
  text-align: center;
}
.partners h3 { font-size: 1.5rem; margin-bottom: 1.75rem; }
.partner-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem 1rem;
}
.partner-list li {
  padding: 0.75rem 1.5rem;
  border: 1px solid hsl(150 45% 35% / 0.2);
  border-radius: 999px;
  background: var(--primary-50);
  color: var(--primary-600);
  font-weight: 650;
  font-size: 1.05rem;
}

@media (max-width: 900px) {
  .testimonials { grid-template-columns: 1fr; max-width: 40rem; margin-inline: auto; }
}

/* === GYIK === */
.faq {
  max-width: 50rem;
  margin-inline: auto;
  display: grid;
  gap: 0.85rem;
}
.faq-item {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.faq-item[open] { border-color: hsl(150 45% 35% / 0.35); box-shadow: var(--shadow-eco); }
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 1.5rem;
  font-weight: 700;
  font-size: 1.075rem;
  cursor: pointer;
  list-style: none;
  border-radius: var(--radius-lg);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "expand_more";
  font-family: "Material Symbols Rounded";
  -webkit-font-feature-settings: "liga";
  font-feature-settings: "liga";
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1;
  color: var(--primary);
  flex-shrink: 0;
  transition: transform 0.25s var(--ease);
}
.faq-item[open] summary::after { transform: rotate(180deg); }
.faq-item summary:hover { color: var(--primary); }
.faq-item p {
  padding: 0 1.5rem 1.35rem;
  color: var(--muted);
}
.faq-item a { color: var(--primary); font-weight: 600; text-decoration: underline; }

/* === KAPCSOLAT === */
.contact-layout {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 2rem;
  align-items: start;
}
.contact-aside { display: grid; gap: 1.5rem; }

.form-card { padding: clamp(1.5rem, 4vw, 2.5rem); }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 1.25rem;
}

.field { margin-bottom: 1.1rem; }
.field label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.925rem;
  font-weight: 600;
}
.req { color: var(--danger); }

.field input,
.field textarea {
  display: block;
  width: 100%;
  padding: 0.75rem 0.9rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  font-size: 1rem;
  line-height: 1.5;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}
.field textarea { min-height: 9rem; resize: vertical; }
.field input::placeholder,
.field textarea::placeholder { color: hsl(150 8% 60%); }
.field input:hover,
.field textarea:hover { border-color: hsl(150 15% 75%); }
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px hsl(150 45% 35% / 0.14);
}
.field .is-invalid,
.field .is-invalid:hover {
  border-color: var(--danger);
  background: hsl(0 80% 98%);
}
.field .is-invalid:focus { box-shadow: 0 0 0 4px hsl(0 72% 46% / 0.14); }

.field-error {
  min-height: 0;
  margin-top: 0.35rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--danger);
}
.field-error:empty { display: none; }

.field-meta {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}
.counter {
  margin-left: auto;
  margin-top: 0.35rem;
  font-size: 0.8rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.counter.is-near { color: var(--danger); }

.hp {
  position: absolute !important;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-status {
  margin-top: 1rem;
  padding: 0.9rem 1rem;
  border-radius: var(--radius);
  font-weight: 550;
  font-size: 0.95rem;
}
.form-status.is-success {
  background: var(--primary-50);
  border: 1px solid hsl(150 45% 35% / 0.3);
  color: var(--success);
}
.form-status.is-error {
  background: hsl(0 80% 97%);
  border: 1px solid hsl(0 72% 46% / 0.3);
  color: var(--danger);
}
.form-status a { text-decoration: underline; }

.form-note {
  margin-top: 1rem;
  text-align: center;
  font-size: 0.825rem;
  color: var(--muted);
}

.contact-list { display: grid; gap: 1.25rem; }
.contact-list li { display: flex; align-items: flex-start; gap: 1rem; }
.contact-list strong { display: block; margin-bottom: 0.1rem; }
.contact-list a,
.contact-list span:not(.icon):not(.icon-box) { color: var(--muted); }
.contact-list a { transition: color 0.2s ease; }
.contact-list a:hover { color: var(--primary); }

.icon-box {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: var(--radius);
  background: var(--primary-100);
  color: var(--primary);
}

.check-list { display: grid; gap: 0.85rem; }
.check-list li {
  position: relative;
  padding-left: 2rem;
  line-height: 1.5;
}
.check-list li::before {
  content: "check";
  font-family: "Material Symbols Rounded";
  -webkit-font-feature-settings: "liga";
  font-feature-settings: "liga";
  position: absolute;
  left: 0;
  top: 0.05rem;
  display: grid;
  place-items: center;
  width: 1.4rem;
  height: 1.4rem;
  border-radius: 50%;
  background: var(--accent);
  color: var(--fg);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1;
}

@media (max-width: 960px) {
  .contact-layout { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .form-row { grid-template-columns: 1fr; }
}

/* === LÁBLÉC === */
.site-footer {
  background: var(--primary-700);
  color: hsl(0 0% 100% / 0.8);
  padding: clamp(3rem, 7vw, 4.5rem) 0 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 2.5rem;
}
.footer-grid img { width: 130px; margin-bottom: 1rem; }
.footer-grid p { max-width: 22rem; }
.site-footer h2 {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 1rem;
}
.site-footer ul { display: grid; gap: 0.6rem; }
.site-footer a { transition: color 0.2s ease; }
.site-footer a:hover { color: var(--accent); }

.footer-bottom {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid hsl(0 0% 100% / 0.15);
  font-size: 0.9rem;
  color: hsl(0 0% 100% / 0.6);
  text-align: center;
}

@media (max-width: 760px) {
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; text-align: center; }
  .footer-grid img { margin-inline: auto; }
  .footer-grid p { margin-inline: auto; }
}

/* === VISSZA A TETEJÉRE === */
.back-to-top {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 90;
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  box-shadow: var(--shadow-eco);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.3s ease, transform 0.3s var(--ease), visibility 0.3s, background-color 0.2s ease;
}
.back-to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.back-to-top:hover { background: var(--primary-600); transform: translateY(-3px); }

/* === GÖRGETÉSRE MEGJELENŐ ANIMÁCIÓK ===
   Csak akkor rejtünk el bármit, ha a JS fut (html.js),
   így JS nélkül is minden tartalom látható. */
.js [data-reveal] { opacity: 0; }
.js [data-reveal].is-visible {
  animation: reveal 0.8s var(--ease) var(--reveal-delay, 0s) both;
}
/* A „translate” tulajdonságot animáljuk, így nem ütközik a hover „transform” effektekkel. */
@keyframes reveal {
  from { opacity: 0; translate: 0 24px; }
  to   { opacity: 1; translate: 0 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }
  .js [data-reveal] { opacity: 1; transform: none; }
}
