/*
Theme Name: Energetikai Palyazat Hivatalos
Theme URI: https://energetikai-palyazat.hu/
Author: Energetikai-palyazat.hu
Description: Egyedi, gyors és akadalymentes intezmenyi megjelenes energetikai palyazati tajekoztatashoz.
Version: 2.0.2
Text Domain: energetikai-hivatalos
*/

:root {
  --navy: #123a5a;
  --navy-deep: #0b2941;
  --blue: #17699a;
  --blue-soft: #eaf3f8;
  --green: #5a9f42;
  --green-deep: #3f7d2d;
  --gold: #c89b4a;
  --ink: #1d2d38;
  --muted: #586c79;
  --line: #d5e0e6;
  --paper: #ffffff;
  --wash: #f4f7f9;
  --shadow: 0 16px 40px rgba(12, 42, 65, .11);
  --radius: 10px;
  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: var(--blue); }
.container { width: min(calc(100% - 40px), var(--container)); margin-inline: auto; }
.split > *,.service-hero-grid > *,.quote-grid > * { min-width: 0; }
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 99999; padding: 12px 18px; background: #fff; color: #000; }
.skip-link:focus { left: 12px; top: 12px; }

.tricolor { height: 5px; background: linear-gradient(90deg,#ce2939 0 33.333%,#fff 33.333% 66.666%,#477050 66.666%); }
.utility { background: var(--navy-deep); color: #dce9f1; font-size: 13px; letter-spacing: .02em; }
.utility .container { min-height: 38px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.utility a { color: #fff; text-decoration: none; font-weight: 700; }
.utility-note { display: flex; align-items: center; gap: 9px; }
.utility-note::before { content: "i"; width: 19px; height: 19px; border: 1px solid #87a9bf; border-radius: 50%; display: grid; place-items: center; font: 700 12px Georgia,serif; }

.site-header { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 1000; box-shadow: 0 4px 16px rgba(12,42,65,.05); }
.admin-bar .site-header { top: 32px; }
.header-inner { min-height: 88px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { flex: 0 0 300px; display: inline-flex; align-items: center; }
.brand img { display: block; width: 286px; max-height: 78px; object-fit: contain; object-position: left center; }
.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav a { padding: 13px 12px; color: var(--navy-deep); text-decoration: none; font-size: 14px; font-weight: 700; border-radius: 6px; }
.main-nav a:hover, .main-nav a:focus-visible { background: var(--blue-soft); color: var(--blue); }
.nav-cta { color: #fff !important; background: var(--green-deep); margin-left: 6px; }
.nav-cta:hover { background: #316421 !important; }
.menu-toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 7px; background: #fff; color: var(--navy); font-size: 24px; }

.hero { position: relative; overflow: hidden; background: linear-gradient(115deg,#e9f2f7 0%,#f8fbfc 58%,#eef6ee 100%); border-bottom: 1px solid var(--line); }
.hero::before { content: ""; position: absolute; inset: 0; pointer-events: none; background-image: linear-gradient(rgba(18,58,90,.035) 1px,transparent 1px),linear-gradient(90deg,rgba(18,58,90,.035) 1px,transparent 1px); background-size: 42px 42px; mask-image: linear-gradient(to right,#000,transparent 70%); }
.hero-grid { min-height: 650px; display: grid; grid-template-columns: 1.04fr .96fr; align-items: center; gap: 46px; padding-block: 74px; position: relative; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 18px; color: var(--green-deep); font-size: 13px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 34px; height: 3px; background: var(--green); }
h1,h2,h3 { margin-top: 0; color: var(--navy-deep); font-family: Georgia, "Times New Roman", serif; line-height: 1.15; }
h1 { max-width: 750px; margin-bottom: 24px; font-size: clamp(42px,5vw,68px); letter-spacing: -.03em; }
.hero-lead { max-width: 680px; margin: 0 0 30px; color: #405a69; font-size: 20px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.button { display: inline-flex; justify-content: center; align-items: center; min-height: 51px; padding: 12px 22px; border: 2px solid transparent; border-radius: 6px; text-decoration: none; font-size: 15px; font-weight: 800; transition: transform .15s ease,background .15s ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--green-deep); color: #fff; }
.button-primary:hover { background: #316421; }
.button-secondary { border-color: var(--navy); color: var(--navy); background: rgba(255,255,255,.7); }
.button-light { background: #fff; color: var(--navy-deep); }
.hero-visual { position: relative; }
.hero-frame { overflow: hidden; padding: 14px; background: #fff; border-radius: 4px; box-shadow: var(--shadow); border-bottom: 5px solid var(--green); }
.hero-frame img { display: block; width: 100%; aspect-ratio: 1.2; object-fit: cover; }
.hero-stamp { position: absolute; left: -28px; bottom: -28px; width: 168px; padding: 17px; color: #fff; background: var(--navy); box-shadow: 0 12px 28px rgba(12,42,65,.2); }
.hero-stamp strong { display: block; margin-bottom: 3px; font: 700 30px Georgia,serif; }
.hero-stamp span { display: block; font-size: 12px; line-height: 1.4; text-transform: uppercase; letter-spacing: .08em; }
.trust-row { border-bottom: 1px solid var(--line); background: #fff; }
.trust-grid { display: grid; grid-template-columns: repeat(4,1fr); }
.trust-item { min-height: 100px; display: flex; align-items: center; gap: 15px; padding: 20px 24px; border-right: 1px solid var(--line); }
.trust-item:first-child { border-left: 1px solid var(--line); }
.trust-icon { flex: 0 0 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; color: var(--green-deep); background: #edf6e9; font-size: 21px; }
.trust-item strong { display: block; color: var(--navy-deep); font-size: 14px; line-height: 1.3; }
.trust-item span { display: block; margin-top: 3px; color: var(--muted); font-size: 12px; line-height: 1.35; }

.section { padding: 96px 0; }
.section-wash { background: var(--wash); }
.section-navy { color: #dce8ef; background: var(--navy-deep); }
.section-navy h2,.section-navy h3 { color: #fff; }
.section-kicker { margin-bottom: 10px; color: var(--green-deep); font-size: 13px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.section-navy .section-kicker { color: #9bd18c; }
.section-title { max-width: 780px; margin-bottom: 18px; font-size: clamp(34px,4vw,48px); }
.section-intro { max-width: 760px; margin: 0 0 44px; color: var(--muted); font-size: 18px; }
.section-navy .section-intro { color: #c4d5df; }
.cards { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.six-services .card { min-height: 320px; display: flex; flex-direction: column; }
.six-services .card-link { margin-top: auto; }
.card { position: relative; padding: 31px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 7px 22px rgba(13,48,72,.05); }
.card::before { content: ""; position: absolute; top: 0; left: 30px; width: 64px; height: 4px; background: var(--green); }
.card-number { color: #9ab0bd; font: 700 14px Georgia,serif; }
.card h3 { margin: 18px 0 12px; font-size: 23px; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }
.card-link { display: inline-block; margin-top: 20px; color: var(--blue); font-size: 14px; font-weight: 800; text-decoration: none; }
.card-link::after { content: " →"; }

.split { display: grid; grid-template-columns: .9fr 1.1fr; gap: 70px; align-items: center; }
.notice-box { padding: 34px; border-left: 5px solid var(--gold); background: #fff; box-shadow: var(--shadow); }
.notice-box h3 { margin-bottom: 12px; font-size: 26px; }
.notice-box p { margin-bottom: 0; color: var(--muted); }
.checklist { list-style: none; margin: 28px 0 0; padding: 0; }
.checklist li { position: relative; margin: 0 0 14px; padding-left: 35px; }
.checklist li::before { content: "✓"; position: absolute; left: 0; top: 1px; width: 23px; height: 23px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: var(--green-deep); font-weight: 800; font-size: 13px; }
.stat-panel { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: #547088; border: 1px solid #547088; }
.stat { min-height: 190px; padding: 32px; background: var(--navy); }
.stat strong { display: block; margin-bottom: 7px; color: #fff; font: 700 46px Georgia,serif; }
.stat span { color: #c7d7e1; font-size: 14px; }

.process { counter-reset: steps; display: grid; grid-template-columns: repeat(4,1fr); gap: 34px; }
.step { position: relative; padding-top: 28px; border-top: 2px solid #5e788c; }
.step::before { counter-increment: steps; content: "0" counter(steps); position: absolute; top: -18px; left: 0; padding-right: 12px; color: #9bd18c; background: var(--navy-deep); font: 700 23px Georgia,serif; }
.step h3 { margin: 17px 0 10px; font-size: 22px; }
.step p { margin: 0; color: #c4d5df; font-size: 14px; }

.faq-grid { display: grid; grid-template-columns: .75fr 1.25fr; gap: 70px; }
.faq-grid .section-intro { margin-bottom: 24px; }
.faq-list { border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); background: #fff; }
.faq-list summary { cursor: pointer; list-style: none; position: relative; padding: 24px 55px 24px 0; color: var(--navy-deep); font-weight: 800; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; position: absolute; right: 8px; top: 19px; width: 31px; height: 31px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; color: var(--blue); font-size: 21px; }
.faq-list details[open] summary::after { content: "–"; }
.faq-list details p { margin: -5px 55px 24px 0; color: var(--muted); font-size: 15px; }

.contact-band { background: linear-gradient(105deg,var(--green-deep),#2d6f45); color: #fff; }
.contact-inner { min-height: 260px; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 50px; }
.contact-inner h2 { margin-bottom: 14px; color: #fff; font-size: clamp(32px,4vw,46px); }
.contact-inner p { max-width: 720px; margin: 0; color: #e4f0df; }

.site-footer { color: #c9d8e1; background: #081f31; }
.footer-main { padding: 65px 0 45px; display: grid; grid-template-columns: 1.2fr .8fr .8fr; gap: 60px; }
.footer-brand img { width: 280px; padding: 8px; background: #fff; }
.footer-brand p { max-width: 430px; margin: 20px 0 0; font-size: 14px; }
.footer-title { margin-bottom: 18px; color: #fff; font: 700 18px Georgia,serif; }
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links li { margin: 8px 0; }
.footer-links a { color: #c9d8e1; text-decoration: none; font-size: 14px; }
.footer-links a:hover { color: #fff; }
.footer-bottom { padding: 20px 0; border-top: 1px solid #294254; display: flex; justify-content: space-between; gap: 20px; color: #91a6b3; font-size: 12px; }
.footer-bottom a { color: #c9d8e1; }

.page-shell { min-height: 55vh; padding: 80px 0; }
.page-shell .entry-content { max-width: 820px; }
.page-shell h1 { font-size: 48px; }

.breadcrumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 42px; color: var(--muted); font-size: 13px; }
.breadcrumbs a { color: var(--blue); text-decoration: none; font-weight: 700; }
.service-hero { padding: 48px 0 82px; background: linear-gradient(115deg,#edf4f8,#f8fbfc 60%,#eef6ee); border-bottom: 1px solid var(--line); }
.service-hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 70px; align-items: center; }
.service-hero h1 { margin-bottom: 24px; font-size: clamp(40px,5vw,64px); }
.service-panel { padding: 36px; background: #fff; border-top: 5px solid var(--green); box-shadow: var(--shadow); }
.service-panel-title { margin-bottom: 18px; color: var(--navy-deep); font: 700 24px Georgia,serif; }
.service-panel .checklist { margin-top: 0; }
.service-panel .checklist li:last-child { margin-bottom: 0; }
.deliverable-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.deliverable-card { min-height: 240px; padding: 32px; border: 1px solid var(--line); border-top: 4px solid var(--green); background: #fff; }
.deliverable-card span { color: var(--green-deep); font-weight: 800; letter-spacing: .1em; }
.deliverable-card h3 { margin: 22px 0 12px; font-size: 25px; }
.deliverable-card p { margin: 0; color: var(--muted); font-size: 14px; }
.quote-section { padding: 96px 0; background: linear-gradient(115deg,#eaf3f8,#f8fbfc 62%,#edf6e9); border-top: 1px solid var(--line); }
.quote-grid { display: grid; grid-template-columns: .78fr 1.22fr; gap: 70px; align-items: start; }
.quote-copy > p { max-width: 520px; color: var(--muted); }
.quote-form-wrap { padding: 34px; background: #fff; border-top: 5px solid var(--green); box-shadow: var(--shadow); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-grid label { display: flex; flex-direction: column; gap: 7px; color: var(--navy-deep); font-size: 13px; font-weight: 800; }
.form-grid input,.form-grid select,.form-grid textarea { width: 100%; min-height: 48px; padding: 11px 13px; color: var(--ink); background: #fff; border: 1px solid #b8c9d3; border-radius: 5px; font: 400 15px Arial,Helvetica,sans-serif; }
.form-grid textarea { min-height: 125px; resize: vertical; }
.form-grid input:focus,.form-grid select:focus,.form-grid textarea:focus { outline: 3px solid rgba(23,105,154,.18); border-color: var(--blue); }
.form-span-2 { grid-column: 1 / -1; }
.form-consent { flex-direction: row !important; align-items: flex-start; font-weight: 400 !important; color: var(--muted) !important; }
.form-consent input { flex: 0 0 18px; width: 18px; min-height: 18px; margin-top: 2px; }
.form-status { margin-bottom: 20px; padding: 14px 16px; border-radius: 5px; font-size: 14px; font-weight: 700; }
.form-status.success { color: #245b18; background: #e8f5e3; border: 1px solid #abd19c; }
.form-status.error { color: #842323; background: #fff0f0; border: 1px solid #e2adad; }
.hp-field { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }

@media (max-width: 1050px) {
  .header-inner { min-height: 76px; }
  .brand { flex-basis: 250px; }
  .brand img { width: 240px; }
  .menu-toggle { display: block; }
  .main-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; padding: 14px 20px 22px; flex-direction: column; align-items: stretch; background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
  .main-nav.is-open { display: flex; }
  .main-nav a { padding: 12px 16px; }
  .nav-cta { margin: 4px 0 0; text-align: center; }
  .hero-grid { min-height: auto; grid-template-columns: 1fr 1fr; gap: 35px; }
  .trust-grid { grid-template-columns: 1fr 1fr; }
  .trust-item:nth-child(3) { border-left: 1px solid var(--line); }
  .trust-item { border-bottom: 1px solid var(--line); }
  .cards { grid-template-columns: 1fr 1fr; }
  .service-hero-grid { grid-template-columns: 1fr; gap: 38px; }
  .deliverable-grid { grid-template-columns: 1fr 1fr; }
  .quote-grid { grid-template-columns: 1fr; gap: 38px; }
}

@media (max-width: 760px) {
  body { font-size: 16px; }
  .container { width: min(calc(100% - 30px), var(--container)); }
  .utility .container { min-height: 34px; justify-content: center; text-align: center; }
  .utility-contact { display: none; }
  .admin-bar .site-header { top: 46px; }
  .brand { flex-basis: 220px; }
  .brand img { width: 215px; }
  .hero-grid { grid-template-columns: 1fr; padding-block: 55px 76px; }
  .hero-lead { font-size: 18px; }
  .hero-stamp { left: 12px; bottom: -32px; width: 150px; }
  .trust-grid,.cards,.split,.process,.faq-grid,.footer-main { grid-template-columns: 1fr; }
  .trust-item,.trust-item:first-child,.trust-item:nth-child(3) { border-left: 0; border-right: 0; }
  .section { padding: 70px 0; }
  .cards { gap: 17px; }
  .deliverable-grid { grid-template-columns: 1fr; }
  .service-hero { padding: 32px 0 60px; }
  .breadcrumbs { margin-bottom: 30px; }
  .service-panel { padding: 26px; }
  .quote-section { padding: 70px 0; }
  .quote-form-wrap { padding: 24px; }
  .form-grid { grid-template-columns: 1fr; }
  .form-span-2 { grid-column: auto; }
  .split,.faq-grid { gap: 42px; }
  .process { gap: 45px; }
  .contact-inner { min-height: 330px; grid-template-columns: 1fr; gap: 22px; padding-block: 50px; }
  .contact-inner .button { width: 100%; }
  .footer-main { gap: 38px; }
  .footer-bottom { flex-direction: column; }
}

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