/* =====================================================================
   Safe Electric Kft. – stíluslap
   Márkaszínek: sárga (#FBB614) + világoskék (#66CFF2)
   ===================================================================== */

:root {
  --yellow: #FBB614;
  --yellow-dark: #E5A300;
  --blue: #66CFF2;
  --blue-dark: #25B4E3;
  --ink: #0b1320;        /* sötét – sárga/kék felületeken lévő szöveghez */
  --ink-2: #1c2940;
  --heading: #f3f7fc;    /* világos címsorok */
  --text: #c0cdde;       /* világos törzsszöveg */
  --muted: #8392a6;      /* halványabb másodlagos szöveg */
  --bg: #0b1320;         /* fő, sötét háttér */
  --bg-soft: #0f1a2c;    /* kicsit más tónus a váltakozó szekciókhoz */
  --surface: #16233b;    /* kártyák / kiemelt felületek */
  --surface-2: #1b2c49;
  --line: rgba(255, 255, 255, 0.10);
  --white: #ffffff;

  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 24px 55px rgba(0, 0, 0, 0.5);
  --container: 1160px;
  --font-head: "Poppins", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --transition: 0.25s ease;
}

/* ---------- Reset / alapok ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

h1, h2, h3 { font-family: var(--font-head); color: var(--heading); line-height: 1.15; font-weight: 700; }
h1 { font-size: clamp(2rem, 4.5vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.6rem); }
h3 { font-size: 1.18rem; }

.container { width: min(var(--container), 92%); margin-inline: auto; }
.container-narrow { width: min(820px, 92%); margin-inline: auto; }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 999;
  background: var(--ink); color: #fff; padding: 12px 20px; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ---------- Gombok ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 26px; border-radius: 999px; font-weight: 600; font-size: 1rem;
  cursor: pointer; border: 2px solid transparent; transition: var(--transition);
  white-space: nowrap;
}
.btn-primary {
  background: var(--yellow); color: var(--ink); border-color: var(--yellow);
  box-shadow: 0 8px 20px rgba(251, 182, 20, 0.35);
}
.btn-primary:hover { background: var(--yellow-dark); border-color: var(--yellow-dark); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--heading); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--blue); color: var(--blue); }
.btn-block { width: 100%; }
.btn-lg { padding: 18px 34px; font-size: 1.1rem; }

.eyebrow {
  text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.82rem;
  font-weight: 700; color: var(--blue-dark); margin-bottom: 12px;
}
.eyebrow-light { color: var(--blue); }

/* ---------- Fejléc ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(11, 19, 32, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand-logo { height: 40px; width: auto; }
.main-nav { display: flex; align-items: center; }
.nav-menu { display: flex; align-items: center; gap: 28px; }
.nav-menu a { font-weight: 500; color: var(--text); transition: var(--transition); }
.nav-menu a:hover { color: var(--blue); }
.nav-cta {
  background: var(--yellow); color: var(--ink) !important; padding: 10px 18px; border-radius: 999px;
  font-weight: 600 !important;
}
.nav-cta:hover { background: var(--yellow-dark); }

.nav-toggle {
  display: none; flex-direction: column; gap: 5px; background: none; border: none;
  cursor: pointer; padding: 8px;
}
.nav-toggle span { width: 26px; height: 3px; background: var(--heading); border-radius: 2px; transition: var(--transition); }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  /* Fallback: sötét navy átmenet, ha még nincs hero.jpg.
     A fotó (assets/hero.jpg) automatikusan rákerül, amint feltöltöd. */
  background:
    linear-gradient(135deg, var(--ink), var(--ink-2)),
    #0e1726;
  background-size: cover;
  background-position: center;
  color: #fff;
}
.hero::before {
  content: "";
  position: absolute; inset: 0; z-index: 0;
  background-image: url("../assets/hero.jpg");
  background-size: cover; background-position: center;
}
/* Sötét + márka-színes overlay a jó olvashatóságért */
.hero-overlay {
  position: absolute; inset: 0; z-index: 1;
  background:
    radial-gradient(1100px 500px at 90% -10%, rgba(102, 207, 242, 0.22), transparent 55%),
    radial-gradient(900px 500px at -5% 110%, rgba(251, 182, 20, 0.18), transparent 55%),
    linear-gradient(100deg, rgba(8, 14, 26, 0.92) 0%, rgba(8, 14, 26, 0.78) 45%, rgba(8, 14, 26, 0.55) 100%);
}
.hero-inner {
  position: relative; z-index: 2;
  max-width: 760px;
  padding: clamp(72px, 12vw, 140px) 0;
}
.hero h1 { color: #fff; }
.hero-lead { font-size: 1.18rem; color: #cdd7e5; margin: 22px 0 30px; max-width: 56ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 30px; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 22px; color: #fff; font-weight: 500; }
.hero-badges li { font-size: 0.97rem; }
.btn-ghost-light { background: transparent; color: #fff; border-color: rgba(255,255,255,0.5); }
.btn-ghost-light:hover { border-color: var(--blue); color: var(--blue); background: rgba(255,255,255,0.06); }

/* ---------- Szekciók ---------- */
.section { padding: clamp(56px, 9vw, 110px) 0; }
.section-soft { background: var(--bg-soft); }
.section-dark { background: linear-gradient(135deg, var(--ink), var(--ink-2)); color: #cdd7e5; }
.section-dark h2 { color: #fff; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 52px; }
.section-sub { color: var(--muted); font-size: 1.1rem; margin-top: 14px; }

/* ---------- Kártyák (szolgáltatások) ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 22px; }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 26px; box-shadow: var(--shadow); transition: var(--transition);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: rgba(102,207,242,0.5); background: var(--surface-2); }
.card-icon {
  width: 56px; height: 56px; display: grid; place-items: center; font-size: 1.7rem;
  border-radius: 14px; margin-bottom: 18px;
  background: linear-gradient(135deg, rgba(251,182,20,0.18), rgba(102,207,242,0.18));
}
.card h3 { margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 0.98rem; }

/* ---------- Rólunk ---------- */
.about-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 56px; align-items: center; }
.about-text p { margin-top: 16px; color: #cdd7e5; }
.about-text p:first-of-type { margin-top: 24px; }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.stats li {
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius); padding: 24px; text-align: center;
}
.stats strong { display: block; font-family: var(--font-head); font-size: 1.9rem; color: var(--yellow); }
.stats span { font-size: 0.9rem; color: #9fb0c6; }

/* ---------- Folyamat ---------- */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; list-style: none; }
.step {
  position: relative; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 30px 26px; box-shadow: var(--shadow);
}
.step-num {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: var(--yellow); color: var(--ink); font-family: var(--font-head);
  font-weight: 800; font-size: 1.2rem; margin-bottom: 16px;
}
.step h3 { margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 0.95rem; }

/* ---------- GYIK (harmonika) ---------- */
.faq { display: grid; gap: 14px; }
.faq details {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 4px 22px; transition: var(--transition);
}
.faq details[open] { border-color: rgba(102,207,242,0.5); background: var(--surface-2); }
.faq summary {
  cursor: pointer; list-style: none; padding: 16px 0; font-weight: 600; color: var(--heading);
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; font-size: 1.5rem; color: var(--yellow); line-height: 1; transition: var(--transition);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 18px; color: var(--text); }

/* ---------- CTA sáv ---------- */
.cta-band {
  background: linear-gradient(120deg, var(--blue-dark), #1183ab);
  padding: clamp(36px, 6vw, 56px) 0;
}
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; }
.cta-band h2 { color: #fff; font-size: clamp(1.4rem, 3vw, 2rem); }
.cta-band p { color: rgba(255,255,255,0.92); margin-top: 8px; }

/* ---------- Kapcsolat ---------- */
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 36px; align-items: start; }
.contact-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.contact-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 22px; display: flex; flex-direction: column; gap: 4px; transition: var(--transition);
  box-shadow: var(--shadow);
}
a.contact-card:hover { transform: translateY(-3px); border-color: var(--blue); background: var(--surface-2); }
.contact-ico { font-size: 1.5rem; }
.contact-label { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); font-weight: 600; }
.contact-value { font-weight: 600; color: var(--heading); }

.contact-form {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px; box-shadow: var(--shadow); display: grid; gap: 16px;
}
.form-note { color: var(--muted); font-size: 0.95rem; }
.contact-form label { display: grid; gap: 6px; font-size: 0.9rem; font-weight: 600; color: var(--heading); }
.contact-form input, .contact-form textarea {
  font-family: inherit; font-size: 1rem; padding: 12px 14px; border: 1px solid var(--line);
  border-radius: var(--radius-sm); background: var(--bg); color: var(--text); transition: var(--transition);
}
.contact-form input:focus, .contact-form textarea:focus {
  outline: none; border-color: var(--blue); background: var(--bg-soft);
  box-shadow: 0 0 0 3px rgba(102,207,242,0.25);
}
/* vCard QR blokk */
.vcard-block {
  margin-top: 40px; display: flex; align-items: center; gap: 32px; flex-wrap: wrap;
  background: linear-gradient(135deg, var(--surface), var(--surface-2));
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow);
}
.vcard-qr {
  flex: 0 0 auto; background: #fff; padding: 14px; border-radius: var(--radius-sm);
  box-shadow: var(--shadow); line-height: 0;
}
.vcard-qr img { width: 180px; height: 180px; }
.vcard-text { flex: 1 1 280px; }
.vcard-text h3 { margin-bottom: 10px; font-size: 1.4rem; }
.vcard-text p:last-child { color: var(--text); }

.form-status {
  margin: 0; padding: 12px 14px; border-radius: var(--radius-sm); font-size: 0.95rem; font-weight: 600;
}
.form-status[hidden] { display: none; }
.form-status.is-success { background: rgba(46, 204, 113, 0.15); color: #6ee7a8; border: 1px solid rgba(46, 204, 113, 0.4); }
.form-status.is-error { background: rgba(231, 76, 60, 0.15); color: #ff9a8f; border: 1px solid rgba(231, 76, 60, 0.4); }

.map-wrap {
  margin-top: 40px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.map-wrap iframe { width: 100%; height: 360px; border: 0; display: block; }

/* ---------- Lábléc ---------- */
.site-footer { background: var(--ink); color: #9fb0c6; padding-top: 56px; }
.footer-inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 36px; padding-bottom: 40px; }
.footer-brand img { height: 38px; width: auto; margin-bottom: 16px; filter: brightness(0) invert(1); opacity: 0.95; }
.footer-brand p { max-width: 38ch; font-size: 0.95rem; }
.footer-col h3 { color: #fff; font-size: 1rem; margin-bottom: 14px; }
.footer-col li { margin-bottom: 8px; font-size: 0.95rem; }
.footer-col a:hover { color: var(--blue); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding: 20px 0; }
.footer-bottom p { font-size: 0.88rem; text-align: center; }
.footer-bottom a { color: #9fb0c6; text-decoration: underline; }
.footer-bottom a:hover { color: var(--blue); }

/* ---------- Lebegő hívás gomb ---------- */
.fab-call {
  position: fixed; right: 18px; bottom: 18px; z-index: 90;
  width: 58px; height: 58px; border-radius: 50%; display: none;
  align-items: center; justify-content: center; font-size: 1.5rem;
  background: var(--yellow); color: var(--ink);
  box-shadow: 0 10px 24px rgba(251,182,20,0.5);
  animation: pulse 2.2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(251,182,20,0.5); }
  70% { box-shadow: 0 0 0 16px rgba(251,182,20,0); }
  100% { box-shadow: 0 0 0 0 rgba(251,182,20,0); }
}

/* ---------- Süti-banner ---------- */
.cookie-banner {
  position: fixed; left: 18px; right: 18px; bottom: 18px; z-index: 120;
  max-width: 720px; margin-inline: auto;
  background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); padding: 20px 22px;
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
}
.cookie-banner[hidden] { display: none; }
.cookie-banner p { flex: 1 1 280px; font-size: 0.92rem; color: var(--text); margin: 0; }
.cookie-banner a { color: var(--blue); text-decoration: underline; }
.cookie-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.cookie-actions .btn { padding: 10px 20px; font-size: 0.92rem; }

/* ---------- Belépő animáció ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* =====================================================================
   RESZPONZÍV
   ===================================================================== */
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; gap: 36px; }
  .cta-inner { flex-direction: column; text-align: center; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 28px; }
}

@media (max-width: 760px) {
  .nav-toggle { display: flex; }
  .nav-menu {
    position: fixed; inset: 72px 0 auto 0; flex-direction: column; gap: 0;
    background: #0b1320; border-bottom: 1px solid var(--line); padding: 8px 0;
    transform: translateY(-120%); transition: transform 0.3s ease; box-shadow: var(--shadow);
  }
  .nav-menu.open { transform: translateY(0); }
  .nav-menu li { width: 100%; text-align: center; }
  .nav-menu a { display: block; padding: 14px; }
  .nav-cta { display: inline-block; margin: 8px auto; }
  .fab-call { display: flex; }
  .contact-cards { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}
