/* ============================================================
   THERMOSTUDIO Kft. – Főstíluslap
   Conversion-First, Renewable Energy Contractor
   ============================================================ */

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

:root {
  --white:       #ffffff;
  --off-white:   #f5f5f3;
  --light-gray:  #e8e8e4;
  --mid-gray:    #9a9a96;
  --graphite:    #3a3a38;
  --dark:        #1e1e1c;
  --green:       #1a5c3a;
  --green-light: #2a7a50;
  --green-pale:  #e8f2ec;
  --orange:      #d95f1a;
  --orange-hover:#c05015;
  --font-main:   'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  --radius:      6px;
  --shadow:      0 2px 12px rgba(0,0,0,0.09);
  --shadow-lg:   0 6px 28px rgba(0,0,0,0.13);
  --transition:  0.18s ease;
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-main);
  color: var(--graphite);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { display: block; max-width: 100%; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  color: var(--dark);
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(1.6rem, 3.5vw, 2.6rem); }
h2 { font-size: clamp(1.3rem, 2.5vw, 1.9rem); }
h3 { font-size: 1.1rem; }
p  { margin-bottom: 0.9rem; }
p:last-child { margin-bottom: 0; }

/* ---------- Layout Utilities ---------- */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.section {
  padding: 4rem 0;
}
.section--alt {
  background: var(--off-white);
}
.section--green {
  background: var(--green);
  color: var(--white);
}
.section--green h2,
.section--green h3 { color: var(--white); }

.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 0.6rem;
}
.section--green .section-label { color: rgba(255,255,255,0.7); }

.section-intro {
  max-width: 640px;
  color: var(--mid-gray);
  margin-top: 0.5rem;
  margin-bottom: 2.5rem;
  font-size: 1.05rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 0.75rem 1.6rem;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background var(--transition), color var(--transition), border-color var(--transition), transform var(--transition);
  white-space: nowrap;
  text-align: center;
}
.btn:active { transform: scale(0.98); }

.btn--primary {
  background: var(--orange);
  color: var(--white);
  border-color: var(--orange);
}
.btn--primary:hover { background: var(--orange-hover); border-color: var(--orange-hover); }

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

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

.btn--ghost {
  background: transparent;
  color: var(--green);
  border-color: transparent;
  padding-left: 0;
  font-size: 0.9rem;
}
.btn--ghost:hover { color: var(--orange); }

.btn--sm { padding: 0.55rem 1.1rem; font-size: 0.85rem; }
.btn--full { width: 100%; display: block; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 900;
  background: var(--white);
  border-bottom: 1px solid var(--light-gray);
  box-shadow: 0 1px 8px rgba(0,0,0,0.06);
}

.header-top {
  background: var(--green);
  color: var(--white);
  font-size: 0.82rem;
  padding: 0.35rem 0;
  text-align: right;
}
.header-top a {
  color: var(--white);
  font-weight: 600;
  letter-spacing: 0.02em;
}
.header-top a:hover { text-decoration: underline; }

.header-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 0;
  gap: 1rem;
}

.logo {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.logo-name {
  font-size: 1.35rem;
  font-weight: 900;
  color: var(--green);
  letter-spacing: -0.02em;
}
.logo-desc {
  font-size: 0.72rem;
  color: var(--mid-gray);
  font-weight: 400;
  letter-spacing: 0.02em;
}

.main-nav ul {
  display: flex;
  gap: 0.15rem;
  align-items: center;
}
.main-nav a {
  padding: 0.45rem 0.75rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--graphite);
  border-radius: var(--radius);
  transition: background var(--transition), color var(--transition);
}
.main-nav a:hover,
.main-nav a.active { background: var(--green-pale); color: var(--green); }

.header-cta { flex-shrink: 0; }

/* Hamburger */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.4rem;
  flex-direction: column;
  gap: 5px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--graphite);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  background: var(--dark);
  color: var(--white);
  padding: 4rem 0 3.5rem;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 3rem;
  align-items: start;
}
.hero h1 { color: var(--white); margin-bottom: 1rem; }
.hero-sub {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.78);
  margin-bottom: 1.8rem;
  max-width: 560px;
}
.hero-actions {
  display: flex;
  gap: 0.85rem;
  flex-wrap: wrap;
  margin-bottom: 0;
}

/* Checklist Panel */
.checklist-panel {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 8px;
  padding: 1.5rem 1.4rem;
}
.checklist-panel h3 {
  color: rgba(255,255,255,0.85);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
}
.checklist-panel ul li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  padding: 0.5rem 0;
  font-size: 0.92rem;
  color: rgba(255,255,255,0.85);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.checklist-panel ul li:last-child { border-bottom: none; }
.check-icon {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  background: var(--green-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}
.check-icon::after {
  content: '';
  display: block;
  width: 6px;
  height: 4px;
  border-left: 2px solid white;
  border-bottom: 2px solid white;
  transform: rotate(-45deg) translateY(-1px);
}

/* ---------- Fast Choice Cards ---------- */
.choice-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.choice-card {
  background: var(--white);
  border: 2px solid var(--light-gray);
  border-radius: 8px;
  padding: 1.6rem 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.choice-card:hover {
  border-color: var(--green);
  box-shadow: var(--shadow);
}
.choice-card h3 { color: var(--green); font-size: 1.05rem; }
.choice-card p { font-size: 0.92rem; color: var(--graphite); flex: 1; }

/* ---------- Why Contact Section ---------- */
.why-points {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-top: 1.8rem;
}
.why-point {
  background: var(--white);
  border-left: 3px solid var(--green);
  padding: 0.9rem 1rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--dark);
}

/* ---------- Services Grid ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.25rem;
}
.service-card {
  background: var(--white);
  border: 1px solid var(--light-gray);
  border-top: 3px solid var(--green);
  border-radius: var(--radius);
  padding: 1.5rem 1.3rem;
  transition: box-shadow var(--transition);
}
.service-card:hover { box-shadow: var(--shadow); }
.service-card h3 { margin-bottom: 0.5rem; font-size: 1rem; }
.service-card p { font-size: 0.9rem; color: var(--graphite); margin-bottom: 1rem; }

/* ---------- Process Steps ---------- */
.process-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}
.step {
  position: relative;
  padding: 1.4rem 1.3rem;
  background: var(--white);
  border: 1px solid var(--light-gray);
  border-radius: var(--radius);
}
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--green);
  color: var(--white);
  font-weight: 800;
  font-size: 0.9rem;
  border-radius: 50%;
  margin-bottom: 0.85rem;
}
.step h3 { font-size: 0.97rem; margin-bottom: 0.4rem; }
.step p { font-size: 0.88rem; color: var(--graphite); }

/* ---------- Objection / Mini FAQ ---------- */
.mini-faq { margin-top: 1.5rem; }
.mini-faq-item {
  border-bottom: 1px solid var(--light-gray);
  padding: 0.9rem 0;
}
.mini-faq-item:first-child { border-top: 1px solid var(--light-gray); }
.mini-faq-q {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--dark);
  margin-bottom: 0.3rem;
}
.mini-faq-a {
  font-size: 0.9rem;
  color: var(--graphite);
}

/* ---------- Final CTA Banner ---------- */
.cta-banner {
  text-align: center;
  padding: 4rem 1rem;
}
.cta-banner h2 { margin-bottom: 0.8rem; }
.cta-banner p { color: rgba(255,255,255,0.8); max-width: 520px; margin: 0 auto 1.8rem; }

/* ---------- FAQ Accordion ---------- */
.faq-list { max-width: 760px; }
.faq-item {
  border-bottom: 1px solid var(--light-gray);
}
.faq-item:first-child { border-top: 1px solid var(--light-gray); }
.faq-question {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  padding: 1.1rem 0;
  font-size: 0.97rem;
  font-weight: 700;
  color: var(--dark);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-family: var(--font-main);
}
.faq-question:hover { color: var(--green); }
.faq-icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border: 2px solid var(--light-gray);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 400;
  color: var(--mid-gray);
  transition: transform var(--transition), border-color var(--transition);
}
.faq-item.open .faq-icon {
  transform: rotate(45deg);
  border-color: var(--green);
  color: var(--green);
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.28s ease, padding 0.18s ease;
  font-size: 0.93rem;
  color: var(--graphite);
}
.faq-item.open .faq-answer {
  max-height: 400px;
  padding-bottom: 1rem;
}

/* ---------- Services Page ---------- */
.service-section {
  padding: 3rem 0;
  border-bottom: 1px solid var(--light-gray);
}
.service-section:last-child { border-bottom: none; }
.service-section-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
.service-section:nth-child(even) .service-section-inner { direction: rtl; }
.service-section:nth-child(even) .service-section-inner > * { direction: ltr; }
.service-placeholder {
  background: var(--light-gray);
  border-radius: 8px;
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  color: var(--mid-gray);
  text-align: center;
  padding: 1rem;
  font-style: italic;
}
.service-text h2 { margin-bottom: 0.8rem; }
.service-text p { margin-bottom: 1.2rem; }

/* ---------- About Page ---------- */
.about-lead {
  font-size: 1.1rem;
  color: var(--graphite);
  max-width: 700px;
  margin-bottom: 2.5rem;
  border-left: 4px solid var(--green);
  padding-left: 1.2rem;
}
.about-block { margin-bottom: 2.5rem; }
.about-block h2 { margin-bottom: 0.7rem; }

/* ---------- Grants Page ---------- */
.grants-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}
.grant-card {
  background: var(--white);
  border: 1px solid var(--light-gray);
  border-radius: var(--radius);
  padding: 1.6rem 1.4rem;
}
.grant-card h3 {
  color: var(--green);
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  margin-bottom: 0.6rem;
}
.grant-card p { font-size: 0.9rem; }

/* ---------- Contact Page ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 3rem;
  align-items: start;
}
.contact-info h2 { margin-bottom: 1rem; }
.contact-detail {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin-bottom: 1.5rem;
}
.contact-detail-row {
  display: flex;
  gap: 0.5rem;
  font-size: 0.92rem;
}
.contact-detail-label {
  font-weight: 700;
  color: var(--dark);
  min-width: 120px;
}
.contact-detail-value { color: var(--graphite); }
.contact-detail-value a { color: var(--green); font-weight: 600; }
.contact-detail-value a:hover { text-decoration: underline; }

/* Form */
.contact-form { background: var(--off-white); border-radius: 8px; padding: 2rem; }
.contact-form h2 { margin-bottom: 1.4rem; font-size: 1.3rem; }
.form-group { margin-bottom: 1.1rem; }
.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 0.35rem;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border: 1.5px solid var(--light-gray);
  border-radius: var(--radius);
  font-family: var(--font-main);
  font-size: 0.95rem;
  color: var(--dark);
  background: var(--white);
  transition: border-color var(--transition);
  appearance: none;
  -webkit-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(26,92,58,0.1);
}
.form-group textarea { resize: vertical; min-height: 110px; }
.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='%239a9a96' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
  padding-right: 2.2rem;
}
.form-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin-bottom: 1.2rem;
  font-size: 0.88rem;
  color: var(--graphite);
}
.form-checkbox input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin-top: 2px;
  flex-shrink: 0;
  accent-color: var(--green);
}
.form-microcopy {
  font-size: 0.8rem;
  color: var(--mid-gray);
  margin-top: 0.6rem;
  text-align: center;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--dark);
  color: rgba(255,255,255,0.7);
  padding: 2.5rem 0 1.5rem;
  font-size: 0.85rem;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-bottom: 1.5rem;
}
.footer-brand .logo-name { color: var(--white); font-size: 1.15rem; }
.footer-brand .logo-desc { color: rgba(255,255,255,0.45); }
.footer-brand p { margin-top: 0.6rem; font-size: 0.82rem; }
.footer-details { display: flex; flex-direction: column; gap: 0.3rem; }
.footer-details a { color: rgba(255,255,255,0.8); }
.footer-details a:hover { color: var(--white); text-decoration: underline; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1rem;
  text-align: center;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.4);
}

/* ---------- Mobile Sticky Bar ---------- */
.mobile-sticky {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 800;
  background: var(--white);
  border-top: 1px solid var(--light-gray);
  box-shadow: 0 -2px 12px rgba(0,0,0,0.1);
  padding: 0.7rem 1rem;
  gap: 0.6rem;
}
.mobile-sticky .btn { flex: 1; text-align: center; }

/* ---------- Page Hero (inner pages) ---------- */
.page-hero {
  background: var(--green);
  color: var(--white);
  padding: 3rem 0 2.5rem;
}
.page-hero h1 { color: var(--white); }
.page-hero p { color: rgba(255,255,255,0.8); margin-top: 0.6rem; max-width: 600px; }

/* ---------- Breadcrumb ---------- */
.breadcrumb {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.6);
  margin-bottom: 0.6rem;
}
.breadcrumb a { color: rgba(255,255,255,0.7); }
.breadcrumb a:hover { color: var(--white); }
.breadcrumb span { margin: 0 0.3rem; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .checklist-panel { display: none; }
  .choice-grid { grid-template-columns: 1fr; }
  .service-section-inner { grid-template-columns: 1fr; }
  .service-section:nth-child(even) .service-section-inner { direction: ltr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .main-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--white); border-top: 1px solid var(--light-gray); box-shadow: var(--shadow); padding: 1rem; z-index: 850; }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; gap: 0.2rem; }
  .main-nav a { display: block; padding: 0.6rem 0.75rem; }
  .header-cta { display: none; }
  .nav-toggle { display: flex; }
  .site-header { position: relative; }
  .mobile-sticky { display: flex; }
  body { padding-bottom: 72px; }
  .section { padding: 2.5rem 0; }
  .process-steps { grid-template-columns: 1fr 1fr; }
  .why-points { grid-template-columns: 1fr; }
  .grants-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .process-steps { grid-template-columns: 1fr; }
  .hero { padding: 2.5rem 0 2rem; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; text-align: center; }
  .contact-form { padding: 1.3rem; }
}
