/* =================================================
   TVE Tűzvédelmi Kft. – Főstíluslap
   ================================================= */

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary:      #0d2b5e;
  --primary-dark: #081d40;
  --accent:       #e84626;
  --accent-hover: #c93820;
  --light-bg:     #f4f6fa;
  --white:        #ffffff;
  --text:         #1a1a2e;
  --text-light:   #555;
  --border:       #e0e5ef;
  --shadow:       0 4px 16px rgba(13, 43, 94, 0.1);
  --radius:       8px;
}

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: var(--text);
  line-height: 1.7;
  font-size: 16px;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { max-width: 1140px; margin: 0 auto; padding: 0 1.5rem; }

/* ---- HEADER ---- */
.site-header {
  background: var(--primary);
  position: sticky;
  top: 0;
  z-index: 999;
  box-shadow: 0 2px 12px rgba(0,0,0,0.25);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 1.5rem;
  max-width: 1140px;
  margin: 0 auto;
  gap: 1rem;
}

.site-logo {
  text-decoration: none;
  color: var(--white);
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.3px;
  flex-shrink: 0;
}
.site-logo .accent { color: var(--accent); }
.site-logo:hover { text-decoration: none; }

/* Nav */
.site-nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.15rem;
}

.site-nav a {
  color: rgba(255,255,255,0.9);
  font-size: 0.92rem;
  font-weight: 500;
  padding: 0.5rem 0.85rem;
  border-radius: 4px;
  transition: background 0.2s, color 0.2s;
  text-decoration: none;
  white-space: nowrap;
}

.site-nav a:hover {
  background: rgba(255,255,255,0.12);
  color: var(--white);
  text-decoration: none;
}

.site-nav a.btn-nav {
  background: var(--accent);
  color: var(--white);
  padding: 0.5rem 1.1rem;
  font-weight: 600;
}
.site-nav a.btn-nav:hover { background: var(--accent-hover); }

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: 0.3s;
  display: block;
}

/* ---- HERO ---- */
.hero {
  background: linear-gradient(145deg, var(--primary-dark) 0%, var(--primary) 60%, #1e4080 100%);
  color: var(--white);
  padding: 5rem 1.5rem 4.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%; left: -10%;
  width: 50%; height: 200%;
  background: radial-gradient(circle, rgba(232,70,38,0.1) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content { position: relative; max-width: 800px; margin: 0 auto; }

.hero-badge {
  display: inline-block;
  background: rgba(232,70,38,0.2);
  color: #ff9080;
  border: 1px solid rgba(232,70,38,0.4);
  padding: 0.3rem 1rem;
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

.hero h1 {
  font-size: clamp(1.9rem, 4.5vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1.25rem;
}
.hero h1 em { color: var(--accent); font-style: normal; }

.hero p {
  font-size: clamp(1rem, 2vw, 1.15rem);
  opacity: 0.88;
  max-width: 620px;
  margin: 0 auto 2.25rem;
}

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

/* ---- BUTTONS ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.8rem 1.8rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  border: 2px solid transparent;
}

.btn-primary { background: var(--accent); color: var(--white); border-color: var(--accent); }
.btn-primary:hover {
  background: var(--accent-hover); border-color: var(--accent-hover);
  text-decoration: none; transform: translateY(-1px);
}

.btn-outline { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.6); }
.btn-outline:hover {
  background: rgba(255,255,255,0.1); border-color: var(--white); text-decoration: none;
}

/* ---- TRUST BAR ---- */
.trust-bar {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 1.25rem 1.5rem;
}
.trust-bar-inner {
  display: flex;
  justify-content: center;
  gap: 2.5rem;
  flex-wrap: wrap;
  max-width: 1140px;
  margin: 0 auto;
}
.trust-item {
  display: flex; align-items: center; gap: 0.5rem;
  font-size: 0.9rem; color: var(--text-light); font-weight: 500;
}
.trust-item .icon { color: var(--accent); font-size: 1.1rem; }

/* ---- SECTIONS ---- */
.section { padding: 5rem 1.5rem; }
.section-alt { background: var(--light-bg); }

.section-header {
  text-align: center;
  margin-bottom: 3rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.section-label {
  display: inline-block;
  color: var(--accent);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.section-header h2 {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  color: var(--primary);
  font-weight: 800;
  margin-bottom: 0.75rem;
  line-height: 1.2;
}
.section-header p { color: var(--text-light); font-size: 1.05rem; }

/* ---- SYSTEM CARDS ---- */
.systems-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  max-width: 1140px;
  margin: 0 auto;
}

.system-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  box-shadow: var(--shadow);
  text-align: center;
  border-top: 4px solid var(--accent);
  transition: transform 0.2s, box-shadow 0.2s;
  text-decoration: none;
  color: var(--text);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}
.system-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 28px rgba(13, 43, 94, 0.18);
  text-decoration: none; color: var(--text);
}

.system-icon {
  width: 64px; height: 64px;
  background: linear-gradient(135deg, var(--primary), #1e4080);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem;
}
.system-card h3 { color: var(--primary); font-size: 1rem; font-weight: 700; }
.system-card p { color: var(--text-light); font-size: 0.88rem; line-height: 1.55; }
.system-card .card-link { color: var(--accent); font-size: 0.88rem; font-weight: 600; margin-top: auto; }

/* ---- SERVICE CARDS ---- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  max-width: 1140px;
  margin: 0 auto;
}

.service-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow);
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.service-card .svc-icon {
  width: 48px; height: 48px;
  background: rgba(13,43,94,0.07);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; flex-shrink: 0;
}
.service-card h3 { color: var(--primary); font-size: 1rem; margin-bottom: 0.4rem; }
.service-card p { color: var(--text-light); font-size: 0.9rem; line-height: 1.6; }

/* ---- WHY US ---- */
.why-us-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
  max-width: 1040px;
  margin: 0 auto;
}

.why-us-list { list-style: none; }
.why-us-list li {
  display: flex; gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
  align-items: flex-start;
}
.why-us-list li:last-child { border-bottom: none; }

.why-check {
  width: 28px; height: 28px;
  background: var(--accent); color: var(--white);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem; font-weight: 700;
  flex-shrink: 0; margin-top: 0.15rem;
}
.why-us-list h4 { color: var(--primary); margin-bottom: 0.2rem; font-size: 0.95rem; }
.why-us-list p { color: var(--text-light); font-size: 0.88rem; }

.why-us-cta {
  background: var(--primary);
  border-radius: var(--radius);
  padding: 2.5rem;
  text-align: center;
  color: var(--white);
}
.why-us-cta h3 { font-size: 1.4rem; margin-bottom: 1rem; }
.why-us-cta p { opacity: 0.85; margin-bottom: 1.75rem; font-size: 0.95rem; }

/* ---- FAQ ---- */
.faq-list {
  max-width: 800px; margin: 0 auto;
  display: flex; flex-direction: column; gap: 1rem;
}
.faq-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.faq-question {
  width: 100%; text-align: left;
  padding: 1.25rem 1.5rem;
  background: none; border: none; cursor: pointer;
  font-size: 1rem; font-weight: 600; color: var(--primary);
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  font-family: inherit;
}
.faq-question:hover { background: var(--light-bg); }
.faq-toggle { font-size: 1.4rem; color: var(--accent); font-weight: 300; flex-shrink: 0; transition: transform 0.3s; }
.faq-answer { padding: 0 1.5rem 1.25rem; color: var(--text-light); line-height: 1.7; display: none; }
.faq-item.open .faq-answer { display: block; }
.faq-item.open .faq-toggle { transform: rotate(45deg); }

/* ---- CONTACT SECTION ---- */
.contact-section {
  background: var(--primary);
  color: var(--white);
  text-align: center;
  padding: 5rem 1.5rem;
}
.contact-section h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 0.75rem; }
.contact-section > .container > p { opacity: 0.85; margin-bottom: 3rem; font-size: 1.05rem; }

.contact-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem; max-width: 900px; margin: 0 auto;
}
.contact-card {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
}
.contact-card .c-icon { font-size: 2rem; margin-bottom: 0.75rem; }
.contact-card h3 { font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.5px; opacity: 0.65; margin-bottom: 0.5rem; }
.contact-card a, .contact-card p { font-size: 1.05rem; font-weight: 600; color: var(--white); }
.contact-card a:hover { text-decoration: underline; }

/* ---- FOOTER ---- */
.site-footer {
  background: var(--primary-dark);
  color: rgba(255,255,255,0.65);
  padding: 2.5rem 1.5rem;
}
.footer-inner {
  max-width: 1140px; margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem; align-items: start;
}
.footer-brand p { font-size: 0.88rem; margin-top: 0.5rem; }
.footer-links h4 {
  color: var(--white); font-size: 0.82rem;
  text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 0.75rem;
}
.footer-links ul { list-style: none; }
.footer-links a {
  color: rgba(255,255,255,0.65); font-size: 0.88rem;
  display: block; padding: 0.2rem 0; transition: color 0.2s;
}
.footer-links a:hover { color: var(--white); text-decoration: none; }
.footer-bottom {
  max-width: 1140px; margin: 1.5rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 0.82rem; text-align: center;
}

/* ---- PAGE HERO (inner pages) ---- */
.page-hero {
  background: linear-gradient(145deg, var(--primary-dark), var(--primary));
  color: var(--white);
  padding: 4rem 1.5rem 3.5rem;
}
.page-hero-content { max-width: 800px; }

.breadcrumb { font-size: 0.85rem; opacity: 0.7; margin-bottom: 1rem; }
.breadcrumb a { color: rgba(255,255,255,0.75); }
.breadcrumb a:hover { color: var(--white); text-decoration: none; }
.breadcrumb span { opacity: 0.5; margin: 0 0.4rem; }

.page-hero h1 {
  font-size: clamp(1.7rem, 3.5vw, 2.5rem);
  font-weight: 800; margin-bottom: 1rem; line-height: 1.15;
}
.page-hero p { font-size: 1.1rem; opacity: 0.88; max-width: 620px; }

/* ---- CONTENT GRID (inner pages) ---- */
.content-grid {
  display: grid;
  grid-template-columns: 1fr 310px;
  gap: 3rem;
  max-width: 1140px; margin: 0 auto;
  padding: 4rem 1.5rem;
  align-items: start;
}

.content-main h2 {
  color: var(--primary); font-size: 1.35rem;
  margin: 2rem 0 0.75rem;
  padding-top: 1.5rem;
  border-top: 2px solid var(--border);
}
.content-main h2:first-child { margin-top: 0; padding-top: 0; border-top: none; }
.content-main p { color: #444; margin-bottom: 1rem; }
.content-main ul { margin: 0.75rem 0 1.25rem 1.5rem; color: #444; }
.content-main ul li { margin-bottom: 0.5rem; }
.content-main strong { color: var(--primary); }

/* Sidebar */
.content-sidebar { position: sticky; top: 80px; }

.sidebar-box {
  background: var(--light-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  margin-bottom: 1.5rem;
}
.sidebar-box h3 {
  color: var(--primary); font-size: 1rem;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--accent);
}
.sidebar-box ul { list-style: none; }
.sidebar-box ul li { padding: 0.4rem 0; border-bottom: 1px solid var(--border); }
.sidebar-box ul li:last-child { border-bottom: none; }
.sidebar-box ul a { color: var(--primary); font-size: 0.9rem; font-weight: 500; }
.sidebar-box ul a:hover { color: var(--accent); text-decoration: none; }
.sidebar-box ul a.active { color: var(--accent); font-weight: 700; }

.cta-box {
  background: var(--primary);
  border-radius: var(--radius);
  padding: 2rem; text-align: center; color: var(--white);
}
.cta-box h3 { font-size: 1.1rem; margin-bottom: 0.75rem; }
.cta-box p { opacity: 0.85; font-size: 0.9rem; margin-bottom: 1.25rem; }
.cta-box .phone {
  font-size: 1.25rem; font-weight: 800;
  margin-bottom: 1rem; color: var(--white);
  display: block; text-decoration: none;
}
.cta-box .phone:hover { text-decoration: underline; }
.cta-box .btn { width: 100%; justify-content: center; }

/* ---- RESPONSIVE ---- */
@media (max-width: 900px) {
  .why-us-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .content-grid { grid-template-columns: 1fr; padding: 2.5rem 1.5rem; }
  .content-sidebar { position: static; }
}

@media (max-width: 768px) {
  .nav-toggle { display: flex; }

  .site-nav {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--primary-dark);
    padding: 0.5rem 1rem 1rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
  }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav a { display: block; padding: 0.75rem 1rem; border-radius: 0; }

  .site-header { position: relative; }
  .hero { padding: 3.5rem 1.5rem 3rem; }
  .footer-inner { grid-template-columns: 1fr; }
  .trust-bar-inner { gap: 1.25rem; }
}

@media (max-width: 480px) {
  .systems-grid { grid-template-columns: 1fr 1fr; }
  .hero-actions { flex-direction: column; align-items: center; }
  .btn { text-align: center; justify-content: center; }
}
