/* ============================================================
   Virág Family Solar Klíma Kft. – Main Stylesheet
   Color palette: white, graphite, energetic green, warm yellow
   ============================================================ */

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

:root {
  --green:       #2e7d32;
  --green-light: #43a047;
  --green-bg:    #e8f5e9;
  --yellow:      #f9a825;
  --yellow-dark: #e65100;
  --graphite:    #1e2a35;
  --graphite-mid:#3a4a57;
  --grey-bg:     #f5f6f7;
  --grey-line:   #dde1e5;
  --white:       #ffffff;
  --text:        #1e2a35;
  --text-muted:  #5a6a78;
  --font:        'Segoe UI', Arial, sans-serif;
  --radius:      6px;
  --shadow:      0 2px 12px rgba(0,0,0,.08);
  --shadow-md:   0 4px 24px rgba(0,0,0,.12);
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--white);
  font-size: 16px;
  line-height: 1.65;
}

a { color: var(--green); text-decoration: none; }
a:hover { text-decoration: underline; }

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

/* --- Typography --- */
h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.25;
  color: var(--graphite);
}
h1 { font-size: clamp(1.75rem, 4vw, 2.6rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); }
h3 { font-size: 1.15rem; }
h4 { font-size: 1rem; }

p { margin-bottom: .75rem; }
p:last-child { margin-bottom: 0; }

/* --- Layout helpers --- */
.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}

.section { padding: 60px 0; }
.section--grey { background: var(--grey-bg); }
.section--green { background: var(--green); color: var(--white); }
.section--green h2, .section--green h3 { color: var(--white); }
.section--dark { background: var(--graphite); color: var(--white); }
.section--dark h2, .section--dark h3 { color: var(--white); }

.section-label {
  display: inline-block;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 10px;
}
.section--green .section-label,
.section--dark .section-label { color: var(--yellow); }

.section-title { margin-bottom: 12px; }
.section-lead { color: var(--text-muted); font-size: 1.05rem; max-width: 640px; margin-bottom: 36px; }
.section--green .section-lead,
.section--dark .section-lead { color: rgba(255,255,255,.8); }

/* --- Buttons --- */
.btn {
  display: inline-block;
  padding: 13px 26px;
  border-radius: var(--radius);
  font-size: .95rem;
  font-weight: 700;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background .18s, color .18s, border-color .18s, transform .1s;
  text-align: center;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }

.btn-primary {
  background: var(--yellow);
  color: var(--graphite);
  border-color: var(--yellow);
}
.btn-primary:hover { background: #f0a000; border-color: #f0a000; }

.btn-secondary {
  background: transparent;
  color: var(--green);
  border-color: var(--green);
}
.btn-secondary:hover { background: var(--green); color: var(--white); }

.btn-white {
  background: var(--white);
  color: var(--green);
  border-color: var(--white);
}
.btn-white:hover { background: var(--green-bg); }

.btn-outline-white {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,.6);
}
.btn-outline-white:hover { background: rgba(255,255,255,.15); }

.btn-sm { padding: 9px 18px; font-size: .88rem; }
.btn-full { width: 100%; display: block; }

/* --- Header / Nav --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--white);
  border-bottom: 1px solid var(--grey-line);
  box-shadow: 0 1px 6px rgba(0,0,0,.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  font-size: 1rem;
  font-weight: 800;
  color: var(--graphite);
  line-height: 1.2;
  max-width: 220px;
}
.logo span { color: var(--green); }
.logo:hover { text-decoration: none; }

.main-nav { display: flex; align-items: center; gap: 6px; }
.main-nav a {
  padding: 8px 14px;
  border-radius: var(--radius);
  font-size: .92rem;
  font-weight: 600;
  color: var(--graphite-mid);
  transition: color .15s, background .15s;
}
.main-nav a:hover, .main-nav a.active {
  color: var(--green);
  background: var(--green-bg);
  text-decoration: none;
}

.header-cta { margin-left: 12px; }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  height: 2px;
  background: var(--graphite);
  border-radius: 2px;
  transition: all .2s;
}

/* Mobile nav overlay */
.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--white);
  z-index: 999;
  flex-direction: column;
  padding: 80px 24px 32px;
  gap: 8px;
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--graphite);
  padding: 14px 0;
  border-bottom: 1px solid var(--grey-line);
}
.mobile-nav a:hover { color: var(--green); text-decoration: none; }
.mobile-nav-close {
  position: absolute;
  top: 18px;
  right: 20px;
  background: none;
  border: none;
  font-size: 1.8rem;
  cursor: pointer;
  color: var(--graphite);
}

/* --- Hero --- */
.hero {
  background: linear-gradient(135deg, #f0f4f0 0%, #e8f0ea 100%);
  padding: 56px 0 48px;
  border-bottom: 1px solid var(--grey-line);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 48px;
  align-items: start;
}

.hero-eyebrow {
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 14px;
}

.hero h1 { margin-bottom: 18px; }

.hero-lead {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 28px;
  max-width: 520px;
}

.hero-cta-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.hero-trust {
  font-size: .82rem;
  color: var(--text-muted);
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
}
.hero-trust span::before { content: "✓ "; color: var(--green); font-weight: 700; }

/* Hero Form Panel */
.hero-form-panel {
  background: var(--white);
  border-radius: 10px;
  box-shadow: var(--shadow-md);
  padding: 28px 24px;
  border: 1px solid var(--grey-line);
}

.hero-form-panel h3 {
  font-size: 1.1rem;
  margin-bottom: 18px;
  color: var(--graphite);
}

/* --- Forms --- */
.form-group { margin-bottom: 14px; }
.form-group label {
  display: block;
  font-size: .82rem;
  font-weight: 600;
  color: var(--graphite-mid);
  margin-bottom: 5px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1.5px solid var(--grey-line);
  border-radius: var(--radius);
  font-size: .92rem;
  font-family: var(--font);
  color: var(--text);
  background: var(--white);
  transition: border-color .15s;
  appearance: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(46,125,50,.1);
}
.form-group textarea { resize: vertical; min-height: 80px; }
.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%235a6a78' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}

.form-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: .8rem;
  color: var(--text-muted);
  margin-bottom: 14px;
}
.form-checkbox input[type="checkbox"] {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-top: 2px;
  accent-color: var(--green);
}

/* --- Trust Strip --- */
.trust-strip {
  background: var(--graphite);
  color: var(--white);
  padding: 20px 0;
}

.trust-strip-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 32px;
  justify-content: center;
  align-items: center;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .88rem;
  font-weight: 600;
}
.trust-item .icon {
  width: 28px;
  height: 28px;
  background: rgba(255,255,255,.12);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .9rem;
  flex-shrink: 0;
}

/* --- Service Cards (Bento) --- */
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.service-card {
  background: var(--white);
  border: 1.5px solid var(--grey-line);
  border-radius: 10px;
  padding: 24px 22px;
  transition: box-shadow .2s, border-color .2s;
  display: flex;
  flex-direction: column;
}
.service-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--green-light);
}

.service-card--wide { grid-column: span 2; }
.service-card--tall { }

.service-icon {
  width: 44px;
  height: 44px;
  background: var(--green-bg);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 14px;
  flex-shrink: 0;
}

.service-card h3 { margin-bottom: 8px; font-size: 1.05rem; }
.service-card p { font-size: .9rem; color: var(--text-muted); flex: 1; margin-bottom: 16px; }
.service-card .btn { align-self: flex-start; }

/* --- Why Assessment --- */
.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.checklist { list-style: none; margin: 20px 0 28px; }
.checklist li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--grey-line);
  font-size: .95rem;
}
.checklist li:last-child { border-bottom: none; }
.checklist li::before {
  content: "✓";
  color: var(--white);
  background: var(--green);
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .75rem;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}

.why-visual {
  background: var(--grey-bg);
  border-radius: 10px;
  padding: 32px;
  border: 1px solid var(--grey-line);
  text-align: center;
}
.why-visual .placeholder-img {
  background: var(--grey-line);
  border-radius: 8px;
  height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: .82rem;
  font-style: italic;
  padding: 16px;
  line-height: 1.5;
}

/* --- Process Steps --- */
.process-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  counter-reset: steps;
}

.process-step {
  background: var(--white);
  border-radius: 10px;
  padding: 24px 20px;
  border: 1.5px solid var(--grey-line);
  position: relative;
}

.step-num {
  width: 36px;
  height: 36px;
  background: var(--green);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: .95rem;
  margin-bottom: 14px;
}

.process-step h3 { font-size: 1rem; margin-bottom: 6px; }
.process-step p { font-size: .88rem; color: var(--text-muted); }

/* --- Product Cards --- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 28px;
}

.product-card {
  background: var(--white);
  border: 1.5px solid var(--grey-line);
  border-radius: 10px;
  padding: 22px 20px;
  display: flex;
  flex-direction: column;
}

.product-card .placeholder-img {
  background: var(--grey-bg);
  border-radius: 6px;
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: .78rem;
  font-style: italic;
  text-align: center;
  padding: 12px;
  margin-bottom: 14px;
  line-height: 1.5;
}

.product-card h3 { font-size: .95rem; margin-bottom: 6px; }
.product-price {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--green);
  margin-bottom: 6px;
}
.product-note {
  font-size: .75rem;
  color: var(--text-muted);
  font-style: italic;
  margin-top: auto;
  padding-top: 10px;
}

.product-cta-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

/* --- FAQ Accordion --- */
.faq-section-inner {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 48px;
  align-items: start;
}

.faq-list { border-top: 1px solid var(--grey-line); }

.faq-item { border-bottom: 1px solid var(--grey-line); }

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
  cursor: pointer;
  font-weight: 600;
  font-size: .95rem;
  color: var(--graphite);
  user-select: none;
  gap: 12px;
}
.faq-question:hover { color: var(--green); }

.faq-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--green-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: var(--green);
  font-weight: 700;
  flex-shrink: 0;
  transition: transform .2s;
}
.faq-item.open .faq-icon { transform: rotate(45deg); }

.faq-answer {
  display: none;
  padding: 0 0 16px;
  font-size: .9rem;
  color: var(--text-muted);
  line-height: 1.7;
}
.faq-item.open .faq-answer { display: block; }

.faq-cta-box {
  background: var(--green-bg);
  border-radius: 10px;
  padding: 28px 24px;
  border: 1px solid #c8e6c9;
  position: sticky;
  top: 80px;
}
.faq-cta-box h3 { font-size: 1.1rem; margin-bottom: 10px; }
.faq-cta-box p { font-size: .88rem; color: var(--text-muted); margin-bottom: 18px; }

/* --- Content Cards (Tudástár preview) --- */
.content-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 28px;
}

.content-card {
  background: var(--white);
  border: 1.5px solid var(--grey-line);
  border-radius: 10px;
  padding: 22px 20px;
  display: flex;
  flex-direction: column;
}
.content-card .card-tag {
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--green);
  margin-bottom: 8px;
}
.content-card h3 { font-size: 1rem; margin-bottom: 8px; }
.content-card p { font-size: .88rem; color: var(--text-muted); flex: 1; }

/* --- Final CTA Section --- */
.final-cta-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 48px;
  align-items: start;
}

.contact-box {
  background: var(--graphite);
  color: var(--white);
  border-radius: 10px;
  padding: 28px 24px;
  position: sticky;
  top: 80px;
}
.contact-box h3 { color: var(--white); font-size: 1.1rem; margin-bottom: 18px; }
.contact-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 14px;
  font-size: .9rem;
}
.contact-row .ci {
  width: 28px;
  height: 28px;
  background: rgba(255,255,255,.12);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .85rem;
  flex-shrink: 0;
}
.contact-row a { color: #a5d6a7; }
.contact-row a:hover { color: var(--white); }

/* --- Page Hero (inner pages) --- */
.page-hero {
  background: linear-gradient(135deg, #f0f4f0 0%, #e8f0ea 100%);
  padding: 48px 0 40px;
  border-bottom: 1px solid var(--grey-line);
}
.page-hero h1 { margin-bottom: 10px; }
.page-hero p { color: var(--text-muted); font-size: 1.05rem; max-width: 600px; }

/* --- Breadcrumb --- */
.breadcrumb {
  font-size: .8rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}
.breadcrumb a { color: var(--green); }
.breadcrumb span { margin: 0 6px; }

/* --- Placeholder image --- */
.placeholder-img-block {
  background: var(--grey-bg);
  border: 1px dashed var(--grey-line);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: .82rem;
  font-style: italic;
  text-align: center;
  padding: 16px;
  line-height: 1.6;
}

/* --- Map placeholder --- */
.map-placeholder {
  background: var(--grey-bg);
  border: 1px dashed var(--grey-line);
  border-radius: 8px;
  height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: .9rem;
  font-style: italic;
  text-align: center;
  padding: 20px;
}

/* --- Footer --- */
.site-footer {
  background: var(--graphite);
  color: rgba(255,255,255,.75);
  padding: 48px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 36px;
}

.footer-brand .logo { color: var(--white); font-size: .95rem; }
.footer-brand .logo span { color: #81c784; }
.footer-brand p { font-size: .85rem; margin-top: 12px; line-height: 1.7; }

.footer-col h4 {
  color: var(--white);
  font-size: .88rem;
  font-weight: 700;
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a {
  color: rgba(255,255,255,.65);
  font-size: .85rem;
  transition: color .15s;
}
.footer-col ul li a:hover { color: var(--white); text-decoration: none; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: .78rem;
  color: rgba(255,255,255,.45);
}

/* --- Mobile sticky bar --- */
.mobile-sticky {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 900;
  background: var(--white);
  border-top: 1px solid var(--grey-line);
  box-shadow: 0 -2px 12px rgba(0,0,0,.1);
  padding: 10px 16px;
  gap: 10px;
}
.mobile-sticky .btn { flex: 1; padding: 13px 10px; font-size: .9rem; }

/* --- Utility --- */
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.mt-4 { margin-top: 16px; }
.mt-6 { margin-top: 24px; }
.mt-8 { margin-top: 32px; }
.mb-2 { margin-bottom: 8px; }
.mb-4 { margin-bottom: 16px; }
.mb-6 { margin-bottom: 24px; }
.mb-8 { margin-bottom: 32px; }

.divider {
  border: none;
  border-top: 1px solid var(--grey-line);
  margin: 0;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-form-panel { max-width: 560px; }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .service-card--wide { grid-column: span 1; }
  .why-grid { grid-template-columns: 1fr; }
  .why-visual { display: none; }
  .process-steps { grid-template-columns: repeat(2, 1fr); }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .faq-section-inner { grid-template-columns: 1fr; }
  .faq-cta-box { position: static; }
  .final-cta-grid { grid-template-columns: 1fr; }
  .contact-box { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .content-cards { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .section { padding: 44px 0; }
  .hero { padding: 36px 0 32px; }
  .main-nav { display: none; }
  .header-cta { display: none; }
  .hamburger { display: flex; }
  .service-grid { grid-template-columns: 1fr; }
  .process-steps { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: 1fr; }
  .content-cards { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .trust-strip-inner { flex-direction: column; align-items: flex-start; padding: 0 20px; }
  .hero-cta-row { flex-direction: column; }
  .hero-cta-row .btn { width: 100%; text-align: center; }
  .mobile-sticky { display: flex; }
  body { padding-bottom: 72px; }
  .product-cta-row { flex-direction: column; }
  .product-cta-row .btn { width: 100%; text-align: center; }
}

@media (max-width: 480px) {
  h1 { font-size: 1.6rem; }
  h2 { font-size: 1.3rem; }
  .container { padding: 0 16px; }
}
