/* ============================================================
   kazancserearak.hu — main.css
   Modern, Lighthouse-optimalizált, Bootstrap-mentes
   ============================================================ */

/* --- CSS változók --- */
:root {
  --c-primary: #1d4ed8;
  --c-primary-dark: #1e40af;
  --c-accent: #f59e0b;
  --c-success: #16a34a;
  --c-danger: #dc2626;
  --c-warning: #f59e0b;
  --c-text: #0f172a;
  --c-text-muted: #475569;
  --c-bg: #ffffff;
  --c-bg-alt: #f8fafc;
  --c-bg-dark: #0f172a;
  --c-border: #e2e8f0;
  --c-card: #ffffff;

  --radius: 12px;
  --radius-lg: 18px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .05);
  --shadow: 0 4px 12px rgba(15, 23, 42, .08);
  --shadow-lg: 0 12px 28px rgba(15, 23, 42, .12);

  --container: 1200px;
  --gap: 1.5rem;

  --font-base: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-display: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

/* --- Reset --- */
*,
*::before,
*::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; tab-size: 4; }
body {
  font-family: var(--font-base);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--c-text);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img, picture, video, canvas, svg { display: block; max-width: 100%; height: auto; }
input, button, textarea, select { font: inherit; }
p, h1, h2, h3, h4, h5, h6 { overflow-wrap: break-word; }
a { color: inherit; text-decoration: none; transition: color .2s ease; }
a:hover, a:focus-visible { color: var(--c-primary); }
:focus-visible { outline: 2px solid var(--c-primary); outline-offset: 2px; border-radius: 4px; }

/* --- Skip link --- */
.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--c-primary); color: #fff;
  padding: .75rem 1.25rem; border-radius: 0 0 var(--radius) 0;
  z-index: 9999; font-weight: 600;
}
.skip-link:focus { left: 0; color: #fff; }

/* --- Tipográfia --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  color: var(--c-text);
}
h1 { font-size: clamp(2rem, 4vw + 1rem, 3.25rem); margin-bottom: 1rem; }
h2 { font-size: clamp(1.6rem, 2.5vw + .75rem, 2.4rem); margin-bottom: .75rem; }
h3 { font-size: clamp(1.3rem, 1.5vw + .75rem, 1.75rem); margin-bottom: .5rem; }
h4 { font-size: 1.2rem; margin-bottom: .5rem; }
h5 { font-size: 1.05rem; margin-bottom: .5rem; }
.lead { font-size: 1.15rem; color: var(--c-text-muted); }
.eyebrow {
  display: inline-block; text-transform: uppercase; letter-spacing: .12em;
  font-weight: 700; font-size: .8rem; color: var(--c-primary);
  margin-bottom: .75rem;
}

/* --- Layout --- */
.container {
  width: min(100% - 2rem, var(--container));
  margin-inline: auto;
}
.section { padding: clamp(2.5rem, 6vw, 5rem) 0; }
.section-alt { background: var(--c-bg-alt); }
.section-dark { background: var(--c-bg-dark); color: #e2e8f0; }
.section-dark h1, .section-dark h2, .section-dark h3, .section-dark h4 { color: #f8fafc; }

.section-title { text-align: center; margin-bottom: 2.5rem; }
.section-title h2 { margin-bottom: .75rem; }
.section-title p { max-width: 720px; margin: 0 auto; color: var(--c-text-muted); }
.section-title h2 span { color: var(--c-primary); }

/* --- Grid utility --- */
.grid { display: grid; gap: var(--gap); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }

/* --- Buttons --- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: .5rem;
  padding: .85rem 1.75rem;
  border-radius: 999px;
  font-weight: 600;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
  text-align: center;
  line-height: 1.2;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-primary { background: var(--c-primary); color: #fff; }
.btn-primary:hover, .btn-primary:focus-visible { background: var(--c-primary-dark); color: #fff; }
.btn-accent { background: var(--c-accent); color: #1f2937; }
.btn-accent:hover { background: #d97706; color: #fff; }
.btn-success { background: var(--c-success); color: #fff; }
.btn-success:hover { background: #15803d; color: #fff; }
.btn-outline { border-color: currentColor; }
.btn-lg { padding: 1rem 2.25rem; font-size: 1.05rem; }
.btn-block { width: 100%; }

/* --- Topbar --- */
.topbar {
  background: var(--c-bg-dark); color: #e2e8f0;
  font-size: .9rem; padding: .5rem 0;
}
.topbar .container {
  display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center;
}
.topbar a {
  color: #e2e8f0; display: inline-flex; align-items: center; gap: .35rem;
  padding: .25rem .5rem;
}
.topbar a:hover { color: #fff; }
.topbar svg { width: 1rem; height: 1rem; }

/* --- Header / Nav --- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92); backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--c-border);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: .75rem 0;
}
.nav-brand { display: inline-flex; align-items: center; gap: .75rem; font-weight: 700; color: var(--c-text); }
.nav-brand img { height: 44px; width: auto; }
.nav-list {
  list-style: none; padding: 0; margin: 0;
  display: flex; gap: 1.5rem; flex-wrap: wrap;
}
.nav-list a { font-weight: 500; padding: .5rem 0; position: relative; }
.nav-list a::after {
  content: ''; position: absolute; left: 0; bottom: -2px;
  width: 0; height: 2px; background: var(--c-primary);
  transition: width .2s ease;
}
.nav-list a:hover::after, .nav-list a.active::after { width: 100%; }

.nav-toggle {
  display: none; background: none; border: 0; padding: .5rem;
  cursor: pointer;
}
.nav-toggle span {
  display: block; width: 26px; height: 2px;
  background: var(--c-text); margin: 5px 0; transition: .25s;
}

/* --- Dropdown menu (Szolgáltatások) --- */
.nav-list .has-dropdown { position: relative; }
.nav-list .dd-toggle::after {
  content: ''; display: inline-block; margin-left: .35rem;
  width: 0; height: 0; vertical-align: .15em;
  border-left: 4px solid transparent; border-right: 4px solid transparent;
  border-top: 5px solid currentColor; transition: transform .2s ease;
}
.nav-list .has-dropdown[aria-expanded="true"] .dd-toggle::after,
.nav-list .has-dropdown:hover .dd-toggle::after,
.nav-list .has-dropdown:focus-within .dd-toggle::after { transform: rotate(180deg); }
.nav-list .dropdown-menu {
  position: absolute; top: 100%; left: 0;
  min-width: 240px; margin: 0; padding: .5rem 0;
  list-style: none; background: #fff;
  border: 1px solid var(--c-border); border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
  z-index: 60;
}
.nav-list .has-dropdown:hover > .dropdown-menu,
.nav-list .has-dropdown:focus-within > .dropdown-menu,
.nav-list .has-dropdown[aria-expanded="true"] > .dropdown-menu {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.nav-list .dropdown-menu li { width: 100%; }
.nav-list .dropdown-menu a {
  display: block; padding: .55rem 1rem;
  white-space: nowrap; font-weight: 500;
}
.nav-list .dropdown-menu a:hover,
.nav-list .dropdown-menu a:focus-visible {
  background: var(--c-bg-alt); color: var(--c-primary);
}
.nav-list .dropdown-menu a::after { display: none; }

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav-list {
    position: absolute; top: 100%; left: 0; right: 0;
    background: #fff; flex-direction: column; padding: 1rem;
    box-shadow: var(--shadow); gap: 0;
    transform: translateY(-150%); transition: transform .25s ease;
    max-height: calc(100vh - 80px); overflow-y: auto;
  }
  .nav-list.open { transform: translateY(0); }
  .nav-list li { width: 100%; border-bottom: 1px solid var(--c-border); }
  .nav-list a { display: block; padding: .85rem 0; }

  /* dropdown a mobilon kibontva, statikusan */
  .nav-list .dropdown-menu {
    position: static; margin: 0 0 .25rem 1rem;
    padding: 0 0 .5rem 0;
    background: transparent; border: 0; box-shadow: none;
    opacity: 1; visibility: visible; transform: none;
  }
  .nav-list .dropdown-menu li { border-bottom: 0; }
  .nav-list .dropdown-menu a { padding: .55rem 0; font-size: .95rem; color: var(--c-text-muted); }
  .nav-list .dd-toggle::after { content: ''; }
}

/* --- Hero --- */
.hero {
  position: relative;
  padding: clamp(3rem, 7vw, 6rem) 0 clamp(3rem, 6vw, 5rem);
  background-image: url('../../img/header10.webp');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  min-height: 520px;
}
.hero-grid {
  display: grid; gap: var(--gap); align-items: center;
  grid-template-columns: minmax(0, 1fr);
  position: relative; z-index: 1;
}
@media (min-width: 900px) {
  .hero-grid { grid-template-columns: 1.1fr .9fr; }
}
/* Hero szöveg közvetlenül a háttérképen — nincs doboz, nincs sávozás */
.hero h1,
.hero h1 span,
.hero .lead,
.hero .eyebrow {
  color: #fff;
  text-shadow: 0 2px 6px rgba(0, 0, 0, .55);
}
.hero h1 span { color: #ffd84d; } /* sárgás kiemelés a span-en */
.hero .eyebrow {
  color: #fff;
  letter-spacing: .12em;
}
.hero img.hero-illustration {
  border-radius: var(--radius-lg);
  box-shadow: 0 18px 36px rgba(0, 0, 0, .35);
}

/* --- Csomagajánlat (offer) --- */
.offer-card {
  background: #fff; border: 1px solid var(--c-border);
  border-radius: var(--radius-lg); padding: 1.75rem;
  box-shadow: var(--shadow);
}
.offer-card h2 { color: var(--c-primary); margin-bottom: 1.25rem; font-size: 1.4rem; }
.offer-list {
  list-style: none; padding: 0; margin: 0 0 1rem;
  display: grid; gap: .65rem;
}
.offer-list li {
  display: grid; grid-template-columns: 24px 1fr; gap: .65rem;
  align-items: start; line-height: 1.5;
}
.offer-list li::before {
  content: ''; width: 22px; height: 22px;
  background: var(--c-success);
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path d='M13.485 1.929 5.999 9.414l-3.485-3.485-1.414 1.414L5.999 12.243l8.9-8.9z' fill='white'/></svg>") center / contain no-repeat;
  mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path d='M13.485 1.929 5.999 9.414l-3.485-3.485-1.414 1.414L5.999 12.243l8.9-8.9z' fill='white'/></svg>") center / contain no-repeat;
  margin-top: 3px;
}
.offer-list strong { color: var(--c-primary-dark); }
.price-block { padding: 1rem; border-top: 2px dashed var(--c-border); margin-top: 1rem; }
.price {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  color: var(--c-danger); font-weight: 800;
}
.price-note { color: var(--c-text-muted); font-size: .92rem; margin-top: .5rem; }

/* --- Stats --- */
.stats {
  display: grid; gap: var(--gap);
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  text-align: center; padding: 2rem 0;
}
.stat-item {
  background: #fff; border: 1px solid var(--c-border);
  border-radius: var(--radius); padding: 1.5rem 1rem;
}
.stat-num {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  color: var(--c-primary); font-weight: 800; line-height: 1;
}
.stat-label { color: var(--c-text-muted); margin-top: .35rem; font-size: .95rem; }

/* --- Cards / Icon-box --- */
.card {
  background: var(--c-card);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  height: 100%;
}
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); border-color: transparent; }
.card .icon {
  width: 64px; height: 64px;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(29, 78, 216, .10);
  color: var(--c-primary);
  border-radius: 14px;
  margin-bottom: 1rem;
}
.card .icon svg { width: 36px; height: 36px; }
/* Színes ikonváltozatok — minden szolgáltatásnak saját színe (eredeti stílus) */
.card .icon.icon-red    { background: rgba(255, 46, 46, .10);  color: #FF2E2E; }
.card .icon.icon-blue   { background: rgba(76, 146, 255, .12); color: #4C92FF; }
.card .icon.icon-brown  { background: rgba(115, 70, 44, .10);  color: #73462C; }
.card .icon.icon-yellow { background: rgba(236, 193, 10, .15); color: #ECC10A; }
.card .icon.icon-orange { background: rgba(220, 120, 33, .12); color: #DC7821; }
.card .icon.icon-green  { background: rgba(22, 170, 25, .12);  color: #16AA19; }
.card .icon.icon-purple { background: rgba(143, 106, 162, .14); color: #8F6AA2; }
.card .icon.icon-grey   { background: rgba(94, 103, 140, .10);  color: #5E678C; }
.card h3, .card h4 { font-size: 1.15rem; margin-bottom: .5rem; }
.card .price-tag { display: inline-block; margin-top: .5rem; color: var(--c-danger); font-weight: 700; }

/* --- Logo strip --- */
.logo-strip {
  display: grid; gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  align-items: center; padding: 1.5rem 0;
}
.logo-strip img {
  max-height: 64px; width: auto; margin: 0 auto;
  /* mindig színesek, semmi szürkítés */
  transition: transform .2s ease;
}
.logo-strip img:hover { transform: scale(1.05); }

/* --- Steps (Lépések) --- */
.steps { display: grid; gap: var(--gap); grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); counter-reset: step; }
.step {
  position: relative;
  background: #fff; border: 1px solid var(--c-border);
  border-radius: var(--radius); padding: 2.25rem 1.5rem 1.5rem;
}
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; top: -18px; left: 1.5rem;
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--c-primary); color: #fff;
  display: grid; place-items: center;
  font-weight: 800; font-size: 1.2rem;
  box-shadow: var(--shadow);
}
.step h3 { font-size: 1.15rem; margin-bottom: .5rem; }
.step p { color: var(--c-text-muted); font-size: .95rem; }

/* --- Feature item (Boiler offers) --- */
.feature-row {
  display: grid; gap: var(--gap); align-items: center;
  grid-template-columns: minmax(0, 1fr);
  background: #fff; border: 1px solid var(--c-border);
  border-radius: var(--radius-lg); padding: 1.75rem;
  margin-bottom: var(--gap);
}
@media (min-width: 800px) {
  .feature-row { grid-template-columns: minmax(0, 1fr) 2fr; }
}
.feature-row h3 { color: var(--c-primary); margin-bottom: .5rem; }
.feature-row .price-block { margin-top: 1rem; padding: 1rem; background: var(--c-bg-alt); border-radius: var(--radius); border-top: 0; }
.feature-row .columns { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 600px) { .feature-row .columns { grid-template-columns: 1fr 1fr; } }
.feature-row ul { list-style: none; padding: 0; display: grid; gap: .35rem; }
.feature-row ul li {
  display: grid; grid-template-columns: 18px 1fr; gap: .5rem; align-items: start;
  font-size: .95rem; color: var(--c-text-muted);
}
.feature-row ul li::before {
  content: ''; width: 16px; height: 16px; margin-top: 5px;
  background: var(--c-success);
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path d='M13.485 1.929 5.999 9.414l-3.485-3.485-1.414 1.414L5.999 12.243l8.9-8.9z' fill='white'/></svg>") center / contain no-repeat;
  mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path d='M13.485 1.929 5.999 9.414l-3.485-3.485-1.414 1.414L5.999 12.243l8.9-8.9z' fill='white'/></svg>") center / contain no-repeat;
}

/* --- FAQ Accordion --- */
.faq-list { display: grid; gap: .75rem; }
.faq-item { background: #fff; border: 1px solid var(--c-border); border-radius: var(--radius); overflow: hidden; }
.faq-item summary {
  list-style: none; cursor: pointer;
  padding: 1rem 1.25rem; font-weight: 600;
  display: flex; align-items: center; gap: .75rem;
  position: relative;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+'; margin-left: auto;
  font-size: 1.5rem; color: var(--c-primary); transition: transform .2s ease;
  font-weight: 400;
}
.faq-item[open] summary::after { content: '−'; }
.faq-item .faq-body { padding: 0 1.25rem 1.25rem; color: var(--c-text-muted); }

/* --- Garancia --- */
.warranty { display: grid; gap: 1rem; }
.warranty-item {
  display: grid; grid-template-columns: 110px 1fr; gap: 1rem; align-items: center;
  background: #fff; border: 1px solid var(--c-border);
  border-radius: var(--radius); padding: 1rem;
}
.warranty-num {
  background: var(--c-primary); color: #fff;
  border-radius: var(--radius); padding: 1rem .5rem;
  text-align: center; font-weight: 800;
}
.warranty-num .num { display: block; font-size: 2.25rem; line-height: 1; }
.warranty-num .label { font-size: .85rem; opacity: .9; }
.warranty-item.alt .warranty-num { background: var(--c-accent); color: #1f2937; }
.warranty-item.danger .warranty-num { background: var(--c-danger); }
.warranty-item ul { list-style: none; padding: 0; display: grid; gap: .25rem; font-size: .95rem; color: var(--c-text-muted); }

/* --- Reviews --- */
.reviews-wrap { background: #fff; padding: 1rem; border-radius: var(--radius); }

/* --- Contact callouts --- */
.contact-cta {
  display: grid; gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.contact-cta a {
  display: flex; align-items: center; gap: 1rem;
  background: #fff; border: 1px solid var(--c-border);
  border-radius: var(--radius); padding: 1rem 1.25rem;
  font-weight: 600; transition: transform .15s ease, box-shadow .2s ease;
}
.contact-cta a:hover { transform: translateY(-2px); box-shadow: var(--shadow); color: var(--c-text); }
.contact-cta .ico {
  width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center; flex-shrink: 0;
  background: var(--c-primary); color: #fff;
}
.contact-cta .ico svg { width: 22px; height: 22px; }
.contact-cta .ico.email { background: var(--c-danger); }
.contact-cta small { display: block; color: var(--c-text-muted); font-weight: 500; font-size: .85rem; }

/* --- Footer --- */
.site-footer {
  background: var(--c-bg-dark); color: #cbd5e1;
  padding: 3rem 0 1rem; margin-top: 3rem;
}
.site-footer h4 { color: #fff; margin-bottom: 1rem; }
.site-footer a { color: #cbd5e1; }
.site-footer a:hover { color: #fff; }
.footer-grid {
  display: grid; gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.footer-list { list-style: none; padding: 0; display: grid; gap: .5rem; }
.footer-list a { display: inline-flex; align-items: center; gap: .5rem; }
.footer-bottom {
  text-align: center; padding-top: 1.5rem; margin-top: 2rem;
  border-top: 1px solid rgba(255,255,255,.1);
  color: #94a3b8; font-size: .9rem;
}
.footer-table {
  width: 100%; border-collapse: collapse;
}
.footer-table td {
  padding: .35rem 0;
  border-bottom: 1px dashed rgba(255,255,255,.1);
}
.footer-table td:last-child { text-align: right; color: #fff; }

/* --- Util --- */
.text-center { text-align: center; }
.mt-1 { margin-top: .5rem; } .mt-2 { margin-top: 1rem; } .mt-3 { margin-top: 1.5rem; } .mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: .5rem; } .mb-2 { margin-bottom: 1rem; } .mb-3 { margin-bottom: 1.5rem; } .mb-4 { margin-bottom: 2rem; }
.fade-in { opacity: 0; transform: translateY(15px); transition: opacity .55s ease, transform .55s ease; }
.fade-in.visible { opacity: 1; transform: none; }

/* --- Floating call button (mobile) --- */
.floating-call {
  position: fixed; right: 1rem; bottom: 1rem;
  background: var(--c-success); color: #fff;
  width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center;
  box-shadow: var(--shadow-lg); z-index: 60;
}
.floating-call:hover { background: #15803d; color: #fff; transform: scale(1.05); }
.floating-call svg { width: 24px; height: 24px; }

/* --- Print --- */
@media print {
  .topbar, .site-header, .floating-call, .site-footer { display: none; }
  body { background: #fff; color: #000; }
  a { color: #000; text-decoration: underline; }
}

/* --- Reduced motion --- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}
