/*
Theme Name: Precíz Elektro
Theme URI: https://precizelektro.hu/
Author: Precíz Elektro
Description: Letisztult, reszponzív villanyszerelői bemutatkozó oldal egyéni vállalkozás számára.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: preciz-elektro
*/

:root {
  --pe-ink: #111821;
  --pe-ink-2: #1a2430;
  --pe-ink-3: #263342;
  --pe-yellow: #f5c400;
  --pe-yellow-2: #ffd62e;
  --pe-paper: #f4f6f8;
  --pe-white: #fff;
  --pe-muted: #aeb8c3;
  --pe-line: rgba(255,255,255,.13);
  --pe-shadow: 0 22px 60px rgba(5, 12, 20, .24);
  --pe-radius: 18px;
  --pe-width: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  margin: 0;
  color: var(--pe-ink);
  background: var(--pe-paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
body, button, input, textarea, select { font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
a { color: inherit; }
img, svg { max-width: 100%; }
button, input, textarea { font: inherit; }
.pe-container { width: min(var(--pe-width), calc(100% - 44px)); margin-inline: auto; }
.pe-skip-link { position: absolute; left: -9999px; top: 8px; z-index: 9999; background: var(--pe-yellow); color: #111; padding: 10px 14px; border-radius: 8px; }
.pe-skip-link:focus { left: 8px; }

/* Header */
.pe-header { position: sticky; top: 0; z-index: 100; color: var(--pe-white); background: rgba(17,24,33,.96); border-bottom: 1px solid var(--pe-line); backdrop-filter: blur(14px); }
.pe-header-inner { min-height: 82px; display: flex; align-items: center; gap: 28px; justify-content: space-between; }
.pe-brand { display: inline-flex; align-items: center; gap: 12px; min-width: 245px; color: var(--pe-white); text-decoration: none; }
.pe-brand-mark { width: 46px; height: 46px; color: var(--pe-yellow); flex: 0 0 auto; }
.pe-brand-copy { display: flex; flex-direction: column; line-height: 1; }
.pe-brand-name { font-size: 21px; font-weight: 850; letter-spacing: -.7px; white-space: nowrap; }
.pe-brand-name span { color: var(--pe-yellow); }
.pe-brand-sub { margin-top: 7px; color: #c7ced6; font-size: 9px; letter-spacing: 4px; font-weight: 700; }
.pe-nav { display: flex; align-items: center; gap: clamp(14px, 2.3vw, 30px); }
.pe-nav a { position: relative; padding: 10px 0; text-decoration: none; font-size: 14px; font-weight: 700; color: #edf1f4; transition: color .2s ease; }
.pe-nav a::after { position: absolute; content: ""; left: 0; right: 100%; bottom: 3px; height: 2px; background: var(--pe-yellow); transition: right .2s ease; }
.pe-nav a:hover, .pe-nav a:focus-visible { color: var(--pe-yellow); }
.pe-nav a:hover::after, .pe-nav a:focus-visible::after { right: 0; }
.pe-header-phone { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 12px 18px; border-radius: 999px; background: var(--pe-yellow); color: #10161d; font-weight: 850; text-decoration: none; white-space: nowrap; box-shadow: 0 8px 24px rgba(245,196,0,.16); transition: transform .2s ease, background .2s ease; }
.pe-header-phone:hover { transform: translateY(-2px); background: var(--pe-yellow-2); }
.pe-menu-toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--pe-line); border-radius: 12px; color: white; background: transparent; cursor: pointer; }

/* Hero */
.pe-hero { position: relative; overflow: hidden; color: var(--pe-white); background: radial-gradient(circle at 75% 40%, rgba(56,75,94,.42), transparent 36%), linear-gradient(115deg, #111821 0%, #18222e 62%, #111821 100%); }
.pe-hero::before { position: absolute; content: ""; width: 460px; height: 460px; right: -190px; top: -250px; border: 1px solid rgba(245,196,0,.13); border-radius: 50%; box-shadow: 0 0 0 40px rgba(245,196,0,.025), 0 0 0 85px rgba(245,196,0,.02); }
.pe-hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(420px, .96fr); gap: 46px; align-items: center; min-height: 520px; padding-block: 56px 62px; }
.pe-eyebrow { display: inline-flex; align-items: center; gap: 10px; color: var(--pe-yellow); font-size: 12px; font-weight: 850; letter-spacing: 2.2px; text-transform: uppercase; }
.pe-eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--pe-yellow); }
.pe-hero h1 { max-width: 660px; margin: 18px 0 18px; color: var(--pe-white); font-size: clamp(40px, 5vw, 66px); line-height: 1.02; letter-spacing: -2.8px; font-weight: 900; }
.pe-hero h1 span { display: block; color: var(--pe-yellow); }
.pe-hero-lead { max-width: 590px; margin: 0; color: #d6dde4; font-size: clamp(17px, 1.8vw, 20px); line-height: 1.55; }
.pe-trust-row { display: flex; flex-wrap: wrap; gap: 20px; margin: 30px 0 32px; }
.pe-trust-item { display: flex; align-items: center; gap: 9px; color: #e8edf1; font-size: 13px; font-weight: 700; }
.pe-trust-item svg { width: 25px; height: 25px; color: var(--pe-yellow); flex: 0 0 auto; }
.pe-hero-actions { display: flex; flex-wrap: wrap; gap: 13px; }
.pe-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 13px 22px; border: 1px solid transparent; border-radius: 12px; font-weight: 850; text-decoration: none; transition: transform .2s ease, background .2s ease, border-color .2s ease; cursor: pointer; }
.pe-btn:hover { transform: translateY(-2px); }
.pe-btn-primary { background: var(--pe-yellow); color: #10161d; box-shadow: 0 12px 28px rgba(245,196,0,.17); }
.pe-btn-primary:hover { background: var(--pe-yellow-2); }
.pe-btn-outline { color: var(--pe-white); border-color: rgba(255,255,255,.35); background: rgba(255,255,255,.04); }
.pe-btn-outline:hover { border-color: var(--pe-yellow); background: rgba(245,196,0,.08); }
.pe-hero-visual { position: relative; min-width: 0; }
.pe-hero-visual::before { position: absolute; z-index: 0; content: ""; left: -22px; top: -18px; bottom: 18px; width: 8px; border-radius: 8px; background: var(--pe-yellow); transform: skew(-10deg); opacity: .95; }
.pe-board-frame { position: relative; z-index: 1; overflow: hidden; border: 1px solid rgba(255,255,255,.18); border-radius: 22px; background: linear-gradient(145deg, #273544, #101820); box-shadow: var(--pe-shadow); transform: perspective(1200px) rotateY(-5deg) rotateX(1deg); }
.pe-board-frame::after { position: absolute; content: ""; inset: 0; pointer-events: none; background: linear-gradient(135deg, rgba(255,255,255,.12), transparent 30%, transparent 72%, rgba(0,0,0,.13)); }
.pe-board-svg { display: block; width: 100%; height: auto; }
.pe-visual-caption { position: absolute; right: 16px; bottom: 14px; z-index: 2; padding: 7px 11px; border-radius: 999px; color: #e4e9ed; background: rgba(12,18,25,.75); border: 1px solid rgba(255,255,255,.13); font-size: 10px; font-weight: 750; letter-spacing: 1px; text-transform: uppercase; }

/* Sections */
.pe-section { padding-block: 76px; }
.pe-section-light { background: var(--pe-paper); }
.pe-section-white { background: #fff; }
.pe-section-dark { color: white; background: var(--pe-ink); }
.pe-section-head { max-width: 760px; margin: 0 auto 38px; text-align: center; }
.pe-section-kicker { margin: 0 0 8px; color: #a77f00; font-size: 11px; font-weight: 900; letter-spacing: 2.2px; text-transform: uppercase; }
.pe-section-dark .pe-section-kicker { color: var(--pe-yellow); }
.pe-section-head h2 { margin: 0; color: var(--pe-ink); font-size: clamp(30px, 4vw, 43px); line-height: 1.1; letter-spacing: -1.5px; font-weight: 900; }
.pe-section-dark .pe-section-head h2 { color: white; }
.pe-section-head p { margin: 14px 0 0; color: #647181; font-size: 16px; }
.pe-section-dark .pe-section-head p { color: #bdc7d1; }
.pe-services-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.pe-service-card { position: relative; min-height: 220px; padding: 25px 24px 23px; overflow: hidden; border: 1px solid #e2e7eb; border-radius: var(--pe-radius); background: #fff; box-shadow: 0 8px 28px rgba(20,33,47,.045); transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease; }
.pe-service-card:hover { transform: translateY(-5px); border-color: rgba(245,196,0,.65); box-shadow: 0 18px 35px rgba(20,33,47,.1); }
.pe-service-icon { display: grid; place-items: center; width: 54px; height: 54px; margin-bottom: 24px; border-radius: 15px; color: #151d26; background: var(--pe-yellow); }
.pe-service-icon svg { width: 29px; height: 29px; }
.pe-service-card h3 { margin: 0 0 7px; color: #17212c; font-size: 19px; line-height: 1.25; letter-spacing: -.3px; }
.pe-service-card p { max-width: 330px; margin: 0; color: #687584; font-size: 14px; line-height: 1.55; }
.pe-service-number { position: absolute; top: 15px; right: 18px; color: #edf0f2; font-size: 39px; font-weight: 900; line-height: 1; }

/* Coverage and reasons */
.pe-coverage { position: relative; overflow: hidden; color: white; background: linear-gradient(110deg, #111821, #202c39); }
.pe-coverage::after { position: absolute; content: ""; width: 480px; height: 480px; right: -100px; top: -270px; border: 1px solid rgba(245,196,0,.18); border-radius: 50%; box-shadow: 0 0 0 45px rgba(245,196,0,.025), 0 0 0 90px rgba(245,196,0,.02); }
.pe-coverage-inner { position: relative; z-index: 1; display: grid; grid-template-columns: auto 1fr 1fr; align-items: center; gap: 34px; padding-block: 45px; }
.pe-coverage-icon { display: grid; place-items: center; width: 82px; height: 82px; border: 1px solid rgba(245,196,0,.45); border-radius: 22px; color: var(--pe-yellow); background: rgba(245,196,0,.08); }
.pe-coverage-icon svg { width: 40px; height: 40px; }
.pe-coverage h2 { margin: 0; color: white; font-size: clamp(26px, 3.5vw, 38px); line-height: 1.13; letter-spacing: -1px; }
.pe-coverage h2 span { display: block; color: var(--pe-yellow); }
.pe-coverage-list { display: grid; grid-template-columns: 1fr 1fr; gap: 13px 18px; margin: 0; padding: 0; list-style: none; }
.pe-coverage-list li { display: flex; align-items: flex-start; gap: 9px; color: #e1e6eb; font-size: 13px; font-weight: 650; }
.pe-coverage-list svg { width: 17px; height: 17px; color: var(--pe-yellow); flex: 0 0 auto; margin-top: 2px; }
.pe-why-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 15px; }
.pe-why-item { display: flex; align-items: center; gap: 13px; padding: 20px 17px; border: 1px solid rgba(255,255,255,.12); border-radius: 15px; background: rgba(255,255,255,.035); }
.pe-why-item svg { flex: 0 0 auto; width: 29px; height: 29px; color: var(--pe-yellow); }
.pe-why-item span { color: #e9edf1; font-size: 13px; font-weight: 750; }

/* About and contact */
.pe-about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.pe-about-copy h2 { margin: 0 0 18px; color: var(--pe-ink); font-size: clamp(30px, 4vw, 42px); line-height: 1.1; letter-spacing: -1.5px; }
.pe-about-copy p { color: #5f6d7c; margin: 0 0 13px; }
.pe-about-panel { padding: 30px; border-radius: 22px; color: white; background: linear-gradient(145deg, #1d2936, #111821); box-shadow: var(--pe-shadow); }
.pe-about-panel-mark { display: grid; place-items: center; width: 54px; height: 54px; margin-bottom: 20px; color: #111821; background: var(--pe-yellow); border-radius: 16px; }
.pe-about-panel-mark svg { width: 30px; height: 30px; }
.pe-about-panel h3 { margin: 0 0 9px; color: white; font-size: 22px; }
.pe-about-panel p { margin: 0; color: #c7d0d9; }
.pe-contact-section { background: #e9edf1; }
.pe-contact-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 42px; align-items: start; }
.pe-contact-copy h2 { margin: 0 0 15px; color: var(--pe-ink); font-size: clamp(30px, 4vw, 42px); line-height: 1.1; letter-spacing: -1.4px; }
.pe-contact-copy p { margin: 0 0 22px; color: #637181; }
.pe-contact-phone { display: inline-flex; align-items: center; gap: 12px; color: var(--pe-ink); font-size: clamp(23px, 3vw, 29px); font-weight: 900; text-decoration: none; letter-spacing: -.8px; }
.pe-contact-phone svg { color: #a77f00; width: 25px; height: 25px; }
.pe-contact-note { margin-top: 16px !important; font-size: 13px; }
.pe-form-card { padding: 28px; border: 1px solid #dce2e8; border-radius: 20px; background: #fff; box-shadow: 0 12px 35px rgba(18,32,46,.07); }
.pe-form-card h3 { margin: 0 0 19px; color: #17212c; font-size: 21px; }
.pe-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.pe-form-field { display: flex; flex-direction: column; gap: 6px; }
.pe-form-field-full { grid-column: 1 / -1; }
.pe-form-field label { color: #394655; font-size: 12px; font-weight: 800; }
.pe-form-field input, .pe-form-field textarea, .pe-form-field select { width: 100%; min-height: 46px; padding: 11px 13px; border: 1px solid #d7dee5; border-radius: 10px; color: #17212c; background: #fbfcfd; outline: none; transition: border-color .2s ease, box-shadow .2s ease; }
.pe-form-field textarea { min-height: 115px; resize: vertical; }
.pe-form-field input:focus, .pe-form-field textarea:focus, .pe-form-field select:focus { border-color: #c39b00; box-shadow: 0 0 0 3px rgba(245,196,0,.16); }
.pe-form-consent { display: flex; align-items: flex-start; gap: 9px; margin: 14px 0 18px; color: #697585; font-size: 11px; }
.pe-form-consent input { margin-top: 3px; accent-color: #bd9500; }
.pe-form-status { margin-bottom: 16px; padding: 12px 14px; border-radius: 10px; font-size: 13px; font-weight: 700; }
.pe-form-status.success { color: #155b38; background: #e6f5ec; }
.pe-form-status.error { color: #8a2e24; background: #fff0ed; }
.pe-hp-field { position: absolute !important; left: -9999px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }

/* Footer */
.pe-footer { color: #d7dfe6; background: #10161e; }
.pe-footer-main { display: grid; grid-template-columns: 1.25fr .8fr .95fr; gap: 38px; padding-block: 48px 35px; }
.pe-footer-brand { margin-bottom: 14px; }
.pe-footer p { max-width: 410px; margin: 0; color: #9eabb8; font-size: 13px; }
.pe-footer h3 { margin: 2px 0 14px; color: white; font-size: 14px; }
.pe-footer-links { display: grid; gap: 9px; }
.pe-footer-links a { width: fit-content; color: #b8c2cc; font-size: 13px; text-decoration: none; }
.pe-footer-links a:hover { color: var(--pe-yellow); }
.pe-footer-contact { display: grid; gap: 10px; }
.pe-footer-contact a { color: white; font-size: 15px; font-weight: 800; text-decoration: none; }
.pe-legal { white-space: pre-line; color: #8593a1 !important; font-size: 11px !important; margin-top: 12px !important; }
.pe-footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-block: 16px; border-top: 1px solid rgba(255,255,255,.1); color: #84909c; font-size: 11px; }
.pe-footer-bottom a { color: #aeb8c3; text-decoration: none; }

/* Content pages */
.pe-page-wrap { min-height: 50vh; padding-block: 60px; background: #fff; }
.pe-entry { max-width: 820px; margin-inline: auto; }
.pe-entry h1 { font-size: clamp(32px, 5vw, 48px); line-height: 1.12; }
.pe-entry h2, .pe-entry h3 { margin-top: 1.7em; }
.pe-entry p, .pe-entry li { color: #536170; }

@media (max-width: 1050px) {
  .pe-header-inner { gap: 16px; }
  .pe-brand { min-width: auto; }
  .pe-brand-name { font-size: 18px; }
  .pe-nav { gap: 15px; }
  .pe-header-phone { padding: 11px 14px; font-size: 13px; }
  .pe-hero-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .pe-coverage-inner { grid-template-columns: auto 1fr; }
  .pe-coverage-list { grid-column: 2; }
  .pe-why-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 780px) {
  .pe-container { width: min(var(--pe-width), calc(100% - 32px)); }
  .pe-header-inner { min-height: 72px; }
  .pe-brand-mark { width: 39px; height: 39px; }
  .pe-brand-name { font-size: 16px; }
  .pe-brand-sub { font-size: 8px; letter-spacing: 3px; }
  .pe-header-phone { display: none; }
  .pe-menu-toggle { display: inline-grid; place-items: center; }
  .pe-nav { position: absolute; display: none; left: 0; right: 0; top: 100%; padding: 12px 20px 20px; align-items: stretch; flex-direction: column; gap: 3px; background: #111821; border-bottom: 1px solid var(--pe-line); }
  .pe-nav.is-open { display: flex; }
  .pe-nav a { padding: 12px 4px; }
  .pe-nav a::after { display: none; }
  .pe-hero-grid { grid-template-columns: 1fr; min-height: auto; padding-block: 50px 54px; gap: 36px; }
  .pe-hero h1 { max-width: 580px; font-size: clamp(39px, 10vw, 57px); }
  .pe-hero-visual { max-width: 600px; width: 100%; margin-inline: auto; }
  .pe-section { padding-block: 58px; }
  .pe-services-grid { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 13px; }
  .pe-service-card { min-height: 205px; padding: 20px; }
  .pe-coverage-inner { grid-template-columns: auto 1fr; gap: 18px; }
  .pe-coverage-icon { width: 66px; height: 66px; }
  .pe-coverage-list { grid-column: 1 / -1; }
  .pe-about-grid, .pe-contact-grid { grid-template-columns: 1fr; gap: 28px; }
  .pe-footer-main { grid-template-columns: 1fr 1fr; }
  .pe-footer-main > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
  .pe-trust-row { gap: 14px 18px; margin: 24px 0; }
  .pe-trust-item { font-size: 12px; }
  .pe-hero-actions { display: grid; grid-template-columns: 1fr; }
  .pe-btn { width: 100%; }
  .pe-services-grid { grid-template-columns: 1fr; }
  .pe-service-card { min-height: auto; padding: 19px; }
  .pe-service-icon { width: 48px; height: 48px; margin-bottom: 16px; }
  .pe-coverage-inner { grid-template-columns: 1fr; }
  .pe-coverage-icon { display: none; }
  .pe-coverage-list { grid-template-columns: 1fr; }
  .pe-why-grid { grid-template-columns: 1fr; }
  .pe-form-grid { grid-template-columns: 1fr; }
  .pe-form-field-full { grid-column: auto; }
  .pe-form-card { padding: 20px; }
  .pe-footer-main { grid-template-columns: 1fr; gap: 28px; }
  .pe-footer-main > :first-child { grid-column: auto; }
  .pe-footer-bottom { align-items: flex-start; flex-direction: column; gap: 7px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
