/*
Theme Name: Laszlo Gergo EV
Theme URI: https://example.com
Author: -
Description: Egyszeru, egyedi WordPress tema egyeni vallalkozas (femmegmunkalas, hegesztes, egyedi gyartas) bemutatasara. Fooldal, galeria es kapcsolat oldal sablonokkal.
Version: 1.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: laszlo-gergo-ev
*/

/* ---------- Alapok ---------- */
:root {
  --color-bg: #f4f6fa;
  --color-surface: #ffffff;
  --color-text: #131c2e;
  --color-muted: #545f75;
  --color-dark: #101b3d;
  --color-dark-2: #16265a;
  --color-accent: #1dbed7;
  --color-accent-blue: #2170c4;
  --color-accent-dark: #175a96;
  --color-border: #dde3ef;
  --container: 1140px;
  --radius: 4px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
}

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

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

h1, h2, h3 {
  font-family: "Segoe UI", Roboto, Arial, sans-serif;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.2;
  margin: 0 0 0.6em;
  text-transform: uppercase;
}

h1 { font-size: clamp(2rem, 5vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
h3 { font-size: 1.15rem; }

p { margin: 0 0 1em; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.btn {
  display: inline-block;
  padding: 14px 30px;
  background: var(--color-accent-blue);
  color: #fff;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.9rem;
  border-radius: var(--radius);
  border: 2px solid var(--color-accent-blue);
  transition: background 0.2s, color 0.2s;
}
.btn:hover {
  background: transparent;
  color: var(--color-accent-blue);
  text-decoration: none;
}
.btn-outline {
  background: transparent;
  color: #fff;
  border: 2px solid #fff;
}
.btn-outline:hover {
  background: #fff;
  color: var(--color-dark);
}

/* ---------- Fejlec ---------- */
.site-header {
  background: var(--color-dark);
  border-bottom: 3px solid var(--color-accent);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 84px;
  gap: 20px;
  flex-wrap: wrap;
  padding-top: 10px;
  padding-bottom: 10px;
}

.site-branding {
  color: #fff;
  display: flex;
  align-items: center;
  gap: 14px;
  line-height: 1.3;
}
.site-branding:hover { text-decoration: none; }
.site-branding img,
.custom-logo { max-height: 56px; width: auto; }

.site-logo-mark {
  height: 48px;
  width: auto;
  flex-shrink: 0;
}

.site-branding-text {
  display: flex;
  flex-direction: column;
}

.site-title {
  font-weight: 800;
  font-size: 1.4rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #fff;
}

.site-tagline {
  font-size: 0.8rem;
  color: var(--color-accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 8px;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}

.main-nav a {
  display: inline-block;
  padding: 10px 16px;
  color: #fff;
  text-transform: uppercase;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  border-radius: var(--radius);
}

.main-nav a:hover,
.main-nav .current-menu-item a {
  background: var(--color-accent-blue);
  text-decoration: none;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  color: #fff;
  background: linear-gradient(rgba(9,17,38,0.78), rgba(9,17,38,0.78)),
    url("assets/images/hegesztes-szeles.jpg") center/cover no-repeat;
  padding: 110px 0 90px;
  text-align: center;
}

.hero .container { max-width: 780px; }

.hero h1 { color: #fff; margin-bottom: 0.35em; }

.hero-tagline {
  font-size: 1.1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-accent);
  margin-bottom: 2em;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---------- Szekciok ---------- */
.section {
  padding: 70px 0;
  scroll-margin-top: 100px;
}

.section-alt {
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.section-heading {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 46px;
}

.section-heading .kicker {
  display: block;
  color: var(--color-accent-dark);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.8rem;
  margin-bottom: 10px;
}

.about-content {
  max-width: 760px;
  margin: 0 auto;
  font-size: 1.05rem;
  color: var(--color-muted);
}

/* ---------- Szolgaltatasok ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 28px;
}

.service-card {
  background: var(--color-dark-2);
  color: #fff;
  padding: 32px 26px;
  border-radius: var(--radius);
  border-top: 4px solid var(--color-accent);
}

.service-card h3 {
  color: #fff;
  text-transform: uppercase;
  margin-bottom: 0.8em;
}

.service-card ul {
  margin: 0;
  padding-left: 1.1em;
  color: #d6d5d2;
}

.service-card li { margin-bottom: 0.3em; }

/* ---------- CTA sav ---------- */
.cta-band {
  position: relative;
  background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-blue) 55%, var(--color-dark-2) 100%);
  color: #fff;
  text-align: center;
  padding: 56px 0;
  overflow: hidden;
}

.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("assets/images/brand-pattern.svg") center/cover no-repeat;
  opacity: 0.12;
  mix-blend-mode: screen;
}

.cta-band .container {
  position: relative;
  z-index: 1;
}

.cta-band h2 { color: #fff; }

.cta-band .btn {
  background: var(--color-dark);
  border-color: var(--color-dark);
}
.cta-band .btn:hover {
  background: transparent;
  color: #fff;
  border-color: #fff;
}

/* ---------- Oldal fejlec (belso oldalak) ---------- */
.page-hero {
  background: var(--color-dark);
  color: #fff;
  text-align: center;
  padding: 60px 0;
}
.page-hero h1 { color: #fff; margin: 0; }

.page-content {
  padding: 60px 0;
}

.page-content .entry-content {
  max-width: 780px;
  margin: 0 auto;
  font-size: 1.05rem;
}

/* ---------- Galeria ---------- */
.gallery-wrap .entry-content {
  max-width: var(--container);
}

.gallery-wrap .wp-block-gallery,
.gallery-wrap .wp-block-image {
  margin-bottom: 0;
}

.gallery-wrap figure img {
  border-radius: var(--radius);
  transition: transform 0.25s ease;
}

.gallery-wrap figure:hover img {
  transform: scale(1.03);
}

.gallery-empty-hint {
  text-align: center;
  color: var(--color-muted);
  border: 1px dashed var(--color-border);
  border-radius: var(--radius);
  padding: 40px;
}

/* ---------- Lightbox (galéria képnézegető) ---------- */
.lge-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(9, 15, 30, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 60px 20px;
}

.lge-lightbox.is-open {
  display: flex;
}

body.lge-lightbox-open {
  overflow: hidden;
}

.lge-lightbox-img {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: var(--radius);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.lge-lightbox-close,
.lge-lightbox-prev,
.lge-lightbox-next {
  position: absolute;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: #fff;
  cursor: pointer;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  font-size: 1.3rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.lge-lightbox-close:hover,
.lge-lightbox-prev:hover,
.lge-lightbox-next:hover {
  background: var(--color-accent-blue);
}

.lge-lightbox-home {
  position: absolute;
  top: 20px;
  left: 20px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  padding: 12px 20px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-decoration: none;
  transition: background 0.2s;
}

.lge-lightbox-home:hover {
  background: var(--color-accent-blue);
  text-decoration: none;
  color: #fff;
}

.lge-lightbox-close {
  top: 20px;
  right: 20px;
}

.lge-lightbox-prev {
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
}

.lge-lightbox-next {
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
}

.lge-lightbox-counter {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
}

@media (max-width: 640px) {
  .lge-lightbox-close,
  .lge-lightbox-prev,
  .lge-lightbox-next {
    width: 40px;
    height: 40px;
    font-size: 1.1rem;
  }
  .lge-lightbox-prev { left: 8px; }
  .lge-lightbox-next { right: 8px; }
  .lge-lightbox-close { top: 8px; right: 8px; }
  .lge-lightbox-home {
    top: 8px;
    left: 8px;
    padding: 8px 14px;
    font-size: 0.75rem;
  }
}

/* ---------- Kapcsolat ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
  max-width: 1040px;
  margin: 0 auto 50px;
}

.contact-card {
  display: block;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-top: 4px solid var(--color-accent);
  border-radius: var(--radius);
  padding: 28px;
  text-align: center;
  color: inherit;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.contact-card:hover,
.contact-card:focus-visible {
  text-decoration: none;
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(16, 27, 61, 0.12);
  border-top-color: var(--color-accent-blue);
}

.contact-card h3 {
  text-transform: uppercase;
  margin-bottom: 0.5em;
  font-size: 1rem;
  color: var(--color-muted);
}

.contact-card p {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0;
  color: var(--color-accent-blue);
  overflow-wrap: break-word;
  word-break: normal;
  hyphens: none;
}

/* ---------- Labléc ---------- */
.site-footer {
  background: var(--color-dark);
  color: #b9b8b5;
  text-align: center;
  padding: 30px 0;
  font-size: 0.9rem;
}

.site-footer a { color: #fff; }

/* ---------- Reszponziv ---------- */
@media (max-width: 640px) {
  .header-inner { flex-direction: column; align-items: flex-start; }
  .main-nav ul { gap: 0; }
  .hero { padding: 80px 0 60px; }
}
