/* ===================== ALAP BEÁLLÍTÁSOK ===================== */
:root {
  --accent: #ef4127;         /* vérnarancs */
  --accent-2: #ff8a75;       /* világosabb vérnarancs árnyalat */
  --top-rail: #686868;       /* felső vékony sáv */
  --card-bg: #0f1416;        /* sötét kártyaháttér */
  --card-border: rgba(255,255,255,0.06);
  --card-shadow: 0 10px 36px rgba(0,0,0,0.45);
  --text-muted: #c9d1d5;
  --bs-font-sans-serif: 'Montserrat', system-ui, -apple-system, "Segoe UI",
                        Roboto, "Helvetica Neue", Arial, "Noto Sans",
                        "Liberation Sans", sans-serif;
}

/* Sticky footer elrendezés: a body kitölti a viewportot, a main rugalmasan nyúlik */
html, body {
  height: 100%;
}

body {
  min-height: 100svh;           /* modern viewport unit – mobilon is stabil */
  display: flex;
  flex-direction: column;       /* top-rail, main, footer egymás alatt */
  background: #0b0f10;
  color: #f3f6f8;
  font-family: var(--bs-font-sans-serif);
  scroll-behavior: smooth;
}

/* a main tölti ki a köztes teret, így a footer leér az oldal aljára */
main {
  flex: 1 0 auto;
}

/* ===================== FELSŐ SÁV ===================== */
.top-rail {
  background: var(--top-rail);
  height: 36px;
  display: flex;
  align-items: center;
}

.top-rail__logo {
  max-height: 22px;
  width: auto;
  object-fit: contain;
  -webkit-user-drag: none;
  user-select: none;
}

/* ===================== SZOLGÁLTATÁS KÁRTYÁK ===================== */
.service-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 22px;
  padding: 40px 28px;
  box-shadow: var(--card-shadow);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  min-height: 420px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: center;
}

.service-card:hover {
  transform: translateY(-6px);
  border-color: rgba(239,65,39,0.4);
  box-shadow: 0 14px 40px rgba(0,0,0,0.5);
}

.service-card__head {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.service-card__icon {
  width: 90px;
  height: 90px;
  object-fit: contain;
  margin-bottom: 16px;
  filter: drop-shadow(0 4px 10px rgba(0,0,0,.5));
}

.service-card__title {
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 10px;
  max-width: 280px;
}

.service-card__desc {
  color: var(--text-muted);
  font-size: .95rem;
  margin: 0;
  max-width: 260px;
}

/* ===================== ANIMÁLT OUTLINE GOMB ===================== */
.btn-accent-gradient {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: .75rem 1rem;
  border: 2px solid var(--accent);
  background: transparent;
  color: var(--accent);
  font-weight: 600;
  overflow: hidden;
  transition: color .25s ease, transform .2s ease;
  z-index: 0;
}

/* ===================== MÁSODLAGOS (VISSZA) GOMB ===================== */
.btn-secondary-ghost{
  border: 1px solid rgba(255,255,255,.18);
  color: #f3f6f8;
  background: transparent;
  border-radius: 999px;
  padding: .75rem 1rem;
  font-weight: 600;
  transition: background .2s ease, border-color .2s ease, transform .2s ease;
}

.btn-secondary-ghost:hover{
  border-color: rgba(255,255,255,.32);
  background: rgba(255,255,255,.04);
  transform: translateY(-1px);
}

.btn-secondary-ghost:active{
  transform: scale(.98);
}

/* belső gradient kitöltés */
.btn-accent-gradient::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent-2) 100%);
  transform: translateX(-100%);
  transition: transform .45s ease;
  z-index: -1;
}

.btn-accent-gradient:hover::before {
  transform: translateX(0); /* balról jobbra beúszik */
}

.btn-accent-gradient:hover {
  color: #fff;
  border-color: transparent;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(239,65,39,0.4);
}

.btn-accent-gradient:active {
  transform: scale(0.97);
  box-shadow: 0 2px 8px rgba(239,65,39,0.3);
}

.btn-accent-gradient:focus-visible {
  outline: 2px solid rgba(239,65,39,.85);
  outline-offset: 2px;
}

/* ===================== FOOTER ===================== */
.site-footer {
  background: #0d0d0d;
  padding: 1.5rem 1rem;
  text-align: center;
  border-top: 1px solid rgba(255,255,255,0.08);
  margin-top: clamp(2rem, 6vw, 4rem);
}

.site-footer .footer-text,
.site-footer .footer-copy {
  color: #666;
  font-size: 0.85rem;
  margin: 0 0 0.5rem 0;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.site-footer .footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.site-footer .footer-links a,
.site-footer .footer-link {
  color: #666;
  font-size: 0.85rem;
  text-decoration: none;
  transition: color 0.2s ease;
}

.site-footer .footer-links a:hover,
.site-footer .footer-link:hover {
  color: var(--accent);
}

.site-footer .footer-galahad-btn {
  color: inherit;
  text-decoration: none;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.25s ease;
}

.site-footer .footer-galahad-btn:hover,
.site-footer .footer-galahad-btn:focus {
  color: var(--accent);
  outline: none;
}

/* Mobil (index logika) */
@media (max-width: 576px) {
  .site-footer {
    padding: 2rem 1rem 2.5rem 1rem;
  }

  .site-footer .footer-text,
  .site-footer .footer-copy {
    font-size: 0.9rem;
    line-height: 1.4;
    margin-bottom: 1rem;
  }

  .site-footer .footer-links {
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
  }

  .site-footer .footer-links a {
    font-size: 0.95rem;
  }
}

.site-footer .brand {
  color: var(--accent);
  font-weight: 600;
}

/* ===================== RESZPONZÍV FINOMHANGOLÁS ===================== */
@media (max-width: 768px) {
  .service-card {
    min-height: 380px;
    padding: 32px 24px;
  }
  .service-card__icon {
    width: 80px;
    height: 80px;
  }
}

@media (max-width: 360px) {
  .top-rail { height: 40px; }
  .top-rail__logo { max-height: 24px; }
}
