/*
Theme Name: Paula Noi Szabosag v2
Theme URI: https://example.com
Author: -
Description: Egyedi WordPress tema noi szabosag, varroda es lakastextil uzlet bemutatasara. A Laszlo Gergo EV tema felepitesere epul: fooldal (bemutatkozas, bizalom-kartyak, galeria-elonezet, szolgaltatasok, kapcsolat + nyitvatartas), Galeria es Arlista sablonokkal. Turkiz-magenta markapaletta.
Version: 2.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: paula-szabosag-v2
*/

/* ---------- Alapok ---------- */
:root {
  --color-bg: #f8f5f3;
  --color-surface: #ffffff;
  --color-text: #26222b;
  --color-muted: #675f6c;
  --color-dark: #1c4a50;
  --color-dark-2: #24616a;
  --color-accent: #3fc1c9;
  --color-accent-dark: #1f8f99;
  --color-rose: #c8577f;
  --color-rose-dark: #a6446a;
  --color-border: #e7dfe2;
  --container: 1140px;
  --radius: 6px;
  --font-head: Georgia, "Iowan Old Style", "Times New Roman", serif;
  --font-body: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.65;
}

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: var(--font-head);
  font-weight: 700;
  line-height: 1.25;
  margin: 0 0 0.6em;
}

h1 { font-size: clamp(2.1rem, 5vw, 3.1rem); letter-spacing: 0.01em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.15rem); }
h3 { font-size: 1.2rem; }

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-rose);
  color: #fff;
  font-family: var(--font-body);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.85rem;
  border-radius: 999px;
  border: 2px solid var(--color-rose);
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.btn:hover {
  background: transparent;
  color: var(--color-rose);
  text-decoration: none;
}
.btn-outline {
  background: transparent;
  color: #fff;
  border-color: #fff;
}
.btn-outline:hover {
  background: #fff;
  color: var(--color-dark);
  border-color: #fff;
}

/* ---------- 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: 52px;
  width: auto;
  flex-shrink: 0;
}

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

.site-title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.45rem;
  letter-spacing: 0.02em;
  color: #fff;
}

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

.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;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  border-radius: 999px;
}

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

/* ---------- Hero ---------- */
.hero {
  position: relative;
  color: #fff;
  background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-dark) 45%, var(--color-dark) 100%);
  padding: 110px 0 90px;
  text-align: center;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("assets/images/brand-pattern.svg") 0 0 repeat;
  background-size: 160px 160px;
  opacity: 0.16;
}

.hero .container { position: relative; z-index: 1; max-width: 820px; }

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

.hero-tagline {
  font-size: 0.95rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: #fff;
  opacity: 0.9;
  margin-bottom: 1.4em;
}

.hero-lead {
  font-size: 1.1rem;
  max-width: 620px;
  margin: 0 auto 2em;
  opacity: 0.95;
}

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

.hero-phone {
  margin: 22px 0 0;
  font-size: 0.95rem;
  opacity: 0.92;
}

.hero-phone a {
  color: #fff;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.hero-phone a:hover { opacity: 0.85; }

/* ---------- Szekciok ---------- */
.section {
  padding: 72px 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: 680px;
  margin: 0 auto 46px;
}

.section-heading .kicker {
  display: block;
  color: var(--color-rose);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.75rem;
  margin-bottom: 12px;
}

.section-heading p {
  color: var(--color-muted);
  margin-bottom: 0;
}

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

/* ---------- Meroszalag valaszto sav ---------- */
.tape-divider {
  height: 26px;
  background: url("assets/images/mero-szalag.svg") repeat-x left center;
  background-size: auto 26px;
  border-bottom: 1px solid rgba(28, 74, 80, 0.13);
}

/* ---------- Probababa vizjel a bemutatkozas mellett ---------- */
.section-about {
  position: relative;
  overflow: hidden;
}

.section-about::after {
  content: "";
  position: absolute;
  right: 10px;
  bottom: -30px;
  width: 240px;
  height: 360px;
  background: url("assets/images/probababa.svg") center/contain no-repeat;
  opacity: 0.12;
  pointer-events: none;
}

.section-about .container { position: relative; z-index: 1; }

/* A vizjel csak ott fer el, ahol van hely a szoveg mellett. */
@media (max-width: 980px) {
  .section-about::after { display: none; }
}

/* ---------- Bizalom-kartyak (fooldal) ---------- */
.advantages-grid {
  margin-top: 40px;
}

/* ---------- Szolgaltatas kartyak ---------- */
.service-icon,
.price-icon {
  width: 54px;
  height: 54px;
  margin-bottom: 16px;
}

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

.service-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-top: 4px solid var(--color-accent);
  border-radius: var(--radius);
  padding: 30px 26px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(28, 74, 80, 0.1);
}

.service-card h3 {
  color: var(--color-dark);
  margin-bottom: 0.7em;
}

.service-card ul {
  margin: 0;
  padding-left: 1.15em;
  color: var(--color-muted);
}

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

.service-card p {
  color: var(--color-muted);
  margin: 0;
  font-size: 0.98rem;
}

.section-alt .service-card {
  background: var(--color-bg);
}

/* ---------- Referencia elonezet (fooldal) ---------- */
.preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 18px;
}

.preview-item {
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 3;
}

.preview-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.25s ease;
}

.preview-item:hover img {
  transform: scale(1.05);
}

.preview-caption {
  text-align: center;
  margin: 26px 0 0;
  color: var(--color-muted);
  font-size: 0.95rem;
}

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

.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("assets/images/brand-pattern.svg") 0 0 repeat;
  background-size: 160px 160px;
  opacity: 0.14;
}

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

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

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

/* ---------- Oldal fejlec (belso oldalak) ---------- */
.page-hero {
  position: relative;
  background: linear-gradient(135deg, var(--color-dark) 0%, var(--color-dark-2) 100%);
  color: #fff;
  text-align: center;
  padding: 62px 0;
  overflow: hidden;
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("assets/images/brand-pattern.svg") 0 0 repeat;
  background-size: 160px 160px;
  opacity: 0.12;
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { color: #fff; margin: 0; }
.page-hero .page-hero-lead {
  margin: 0.7em auto 0;
  max-width: 620px;
  opacity: 0.9;
}

.page-content {
  padding: 62px 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 (galeria kepnezegeto) ---------- */
.psz-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(20, 40, 44, 0.93);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 60px 20px;
}

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

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

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

.psz-lightbox-close,
.psz-lightbox-prev,
.psz-lightbox-next {
  position: absolute;
  background: rgba(255, 255, 255, 0.12);
  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;
}

.psz-lightbox-close:hover,
.psz-lightbox-prev:hover,
.psz-lightbox-next:hover {
  background: var(--color-rose);
}

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

.psz-lightbox-home:hover {
  background: var(--color-rose);
  text-decoration: none;
  color: #fff;
}

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

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

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

.psz-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) {
  .psz-lightbox-close,
  .psz-lightbox-prev,
  .psz-lightbox-next {
    width: 40px;
    height: 40px;
    font-size: 1.1rem;
  }
  .psz-lightbox-prev { left: 8px; }
  .psz-lightbox-next { right: 8px; }
  .psz-lightbox-close { top: 8px; right: 8px; }
  .psz-lightbox-home {
    top: 8px;
    left: 8px;
    padding: 8px 14px;
    font-size: 0.72rem;
  }
}

/* ---------- Arlista ---------- */
.price-wrap .entry-content {
  max-width: 860px;
}

.price-wrap table,
.price-wrap .wp-block-table table {
  width: 100%;
  border-collapse: collapse;
  background: var(--color-surface);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(28, 74, 80, 0.07);
}

.price-wrap th,
.price-wrap td {
  padding: 14px 18px;
  text-align: left;
  border-bottom: 1px solid var(--color-border);
}

.price-wrap thead th {
  background: var(--color-dark);
  color: #fff;
  font-family: var(--font-head);
  font-weight: 700;
  letter-spacing: 0.02em;
}

.price-wrap tbody tr:last-child td { border-bottom: none; }
.price-wrap tbody tr:hover td { background: var(--color-bg); }

.price-wrap td:last-child,
.price-wrap thead th:last-child {
  text-align: right;
  white-space: nowrap;
  font-weight: 700;
}

.price-wrap tbody td:last-child { color: var(--color-rose-dark); }

.price-groups {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 26px;
  max-width: var(--container);
  margin: 0 auto;
}

.price-group {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-top: 4px solid var(--color-rose);
  border-radius: var(--radius);
  padding: 28px 26px;
}

.price-group h3 {
  color: var(--color-dark);
  margin-bottom: 0.8em;
}

.price-group ul {
  list-style: none;
  margin: 0;
  padding: 0;
  color: var(--color-muted);
}

.price-group li {
  padding: 9px 0;
  border-bottom: 1px dashed var(--color-border);
}
.price-group li:last-child { border-bottom: none; }

.price-note {
  max-width: 780px;
  margin: 40px auto 0;
  text-align: center;
  color: var(--color-muted);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 28px;
}

.price-note strong { color: var(--color-text); }

/* ---------- Nyitvatartas ---------- */
.hours-box {
  max-width: 560px;
  margin: 0 auto 44px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-left: 4px solid var(--color-accent);
  border-radius: var(--radius);
  padding: 22px 26px;
  text-align: center;
}

.hours-box h3 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-family: var(--font-body);
  color: var(--color-muted);
  margin-bottom: 0.5em;
}

.hours-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.hours-table th,
.hours-table td {
  padding: 7px 0;
  border-bottom: 1px dashed var(--color-border);
  font-size: 1rem;
}

.hours-table tr:last-child th,
.hours-table tr:last-child td { border-bottom: none; }

.hours-table th {
  font-weight: 600;
  color: var(--color-muted);
}

.hours-table td {
  text-align: right;
  font-weight: 700;
  color: var(--color-dark);
  white-space: nowrap;
}

.hours-table .is-closed th,
.hours-table .is-closed td {
  color: var(--color-muted);
  font-weight: 600;
}

/* ---------- Kapcsolat ---------- */
/* Flex + wrap, hogy az utolso sorban maradt kartya(k) kozepre zarjanak —
   raccsal az 5. kartya arvan logna a bal szelen. */
.contact-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
  max-width: 1100px;
  margin: 0 auto;
}

.contact-card {
  flex: 1 1 190px;
  max-width: 260px;
  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(28, 74, 80, 0.12);
  border-top-color: var(--color-rose);
}

.contact-card h3 {
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.5em;
  font-size: 0.8rem;
  color: var(--color-muted);
}

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

/* ---------- Lablec ---------- */
.site-footer {
  background: var(--color-dark);
  color: #cfdcde;
  text-align: center;
  padding: 34px 0;
  font-size: 0.9rem;
}

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

.site-footer .footer-contact {
  margin-bottom: 0.6em;
}

/* ---------- Reszponziv ---------- */
@media (max-width: 640px) {
  .header-inner { flex-direction: column; align-items: flex-start; }
  .main-nav ul { gap: 0; }
  .hero { padding: 80px 0 60px; }
  .section { padding: 52px 0; }
  .price-wrap th,
  .price-wrap td { padding: 11px 12px; font-size: 0.95rem; }
}
