/*
Theme Name: Sírkőpark
Theme URI: https://example.com/
Author: Sírkőpark
Description: Reszponzív, mobilbarát WordPress sablon a Sírkőpark számára.
Version: 6.3
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: sirkopark
*/

:root {
  --bg: #f4f4f1;
  --surface: #ffffff;
  --text: #202020;
  --muted: #666;
  --accent: #4d721f;
  --accent-dark: #365216;
  --border: #d8d8d2;
  --shadow: 0 12px 34px rgba(0,0,0,.08);
  --radius: 18px;
  --max-width: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
}
img { max-width: 100%; height: auto; }
a { color: var(--accent-dark); }
a:hover { color: var(--accent); }

.site-wrap { min-height: 100vh; display: flex; flex-direction: column; }
.container { width: min(calc(100% - 32px), var(--max-width)); margin-inline: auto; }

 .site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(10px);
  overflow: visible;
  padding: 14px 0 26px;
}

/*
 * Egybeépített fejléc: bal oldalt külön logódoboz,
 * mellette a teljesen WordPressből szerkeszthető menüsáv.
 */
.header-inner {
  --logo-width: 180px;
  --logo-height: 126px;
  --menu-height: 82px;
  position: relative;
  min-height: var(--logo-height);
  display: flex;
  align-items: flex-start;
  padding-left: calc(var(--logo-width) - 4px);
}

.brand-shell {
  position: absolute;
  z-index: 6;
  left: 0;
  top: 0;
  width: var(--logo-width);
  height: var(--logo-height);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  background: #fff;
  border: 2px solid var(--border);
  border-radius: 10px 10px 5px 5px;
  box-shadow: 0 7px 18px rgba(0,0,0,.08);
}

.brand,
.custom-logo-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  text-decoration: none;
}
.brand-logo,
.custom-logo {
  display: block;
  width: 145px;
  max-height: 106px;
  object-fit: contain;
}

.site-nav {
  position: relative;
  z-index: 3;
  width: 100%;
  min-height: var(--menu-height);
  margin-top: 12px;
  display: flex;
  align-items: center;
  padding: 10px 22px 10px 48px;
  background: #fff;
  border-top: 2px solid var(--border);
  border-right: 2px solid var(--border);
  border-bottom: 2px solid var(--border);
  border-radius: 0 10px 10px 0;
  box-shadow: 0 7px 18px rgba(0,0,0,.06);
}

/* A rajzon látható ferde csatlakozás a logó és a menü között. */
.site-nav::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: -32px;
  bottom: -2px;
  width: 70px;
  height: 34px;
  background: #fff;
  border-bottom: 2px solid var(--border);
  transform: skewY(-25deg);
  transform-origin: right bottom;
}

.menu-toggle {
  display: none;
  position: relative;
  z-index: 8;
  margin: 28px 8px 0 auto;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  padding: 8px 11px;
  cursor: pointer;
  font-size: 1.45rem;
}
.primary-menu {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
}
.primary-menu li { position: relative; }
.primary-menu a {
  display: block;
  padding: 10px 13px;
  color: var(--text);
  text-decoration: none;
  font-weight: 650;
  border-radius: 10px;
}
.primary-menu a:hover,
.primary-menu .current-menu-item > a,
.primary-menu .current-menu-ancestor > a {
  background: #eef3e9;
  color: var(--accent-dark);
}
.primary-menu .sub-menu {
  display: none;
  position: absolute;
  z-index: 30;
  top: 100%;
  right: 0;
  min-width: 210px;
  margin: 0;
  padding: 8px;
  list-style: none;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow);
}
.primary-menu li:hover > .sub-menu,
.primary-menu li:focus-within > .sub-menu { display: block; }

.hero {
  padding: 72px 0 56px;
  background: linear-gradient(140deg, #f7f7f4 0%, #e8eddf 100%);
}
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 54px; align-items: center; }
.hero h1 { font-size: clamp(2.2rem, 5vw, 4.6rem); line-height: 1.03; margin: 0 0 22px; }
.hero p { font-size: clamp(1rem, 2vw, 1.25rem); color: var(--muted); margin: 0 0 28px; max-width: 58ch; }
.hero-logo { background: var(--surface); border-radius: 24px; padding: 18px; box-shadow: var(--shadow); }
.hero-logo img { display: block; width: 100%; max-height: 640px; object-fit: contain; border-radius: 14px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  font-weight: 750;
  border: 2px solid var(--accent);
}
.button:hover { background: var(--accent-dark); color: #fff; border-color: var(--accent-dark); }
.button.secondary { background: transparent; color: var(--accent-dark); margin-left: 8px; }

.content-area { padding: 56px 0; flex: 1; }
.content-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 34px; align-items: start; }
.card, article.post, .page-content, .sidebar-widget {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(22px, 4vw, 38px);
  box-shadow: 0 8px 24px rgba(0,0,0,.045);
}
article.post + article.post { margin-top: 24px; }
.entry-title { margin-top: 0; line-height: 1.2; }
.entry-title a { color: var(--text); text-decoration: none; }
.entry-meta { color: var(--muted); font-size: .92rem; margin-bottom: 18px; }
.entry-content > *:first-child { margin-top: 0; }
.entry-content > *:last-child { margin-bottom: 0; }

.sidebar { display: grid; gap: 20px; }
.sidebar-widget h2, .sidebar-widget h3 { margin-top: 0; }
.sidebar-widget ul { padding-left: 20px; }

.site-footer { background: #252525; color: #e8e8e8; padding: 34px 0; margin-top: auto; }
.footer-inner { display: flex; justify-content: space-between; gap: 24px; align-items: center; }
.site-footer a { color: #fff; }

.wp-block-image img, .post-thumbnail img { border-radius: 14px; }
input, textarea, select {
  width: 100%;
  max-width: 100%;
  padding: 12px 14px;
  border: 1px solid #bbb;
  border-radius: 10px;
  font: inherit;
}
button, input[type="submit"] { font: inherit; }

@media (max-width: 900px) {
  .hero-grid, .content-grid { grid-template-columns: 1fr; }
  .hero-logo { max-width: 640px; margin-inline: auto; }
  .sidebar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
  .site-header { padding: 8px 0 18px; }
  .header-inner {
    --logo-width: 124px;
    --logo-height: 96px;
    --menu-height: 66px;
    min-height: var(--logo-height);
    padding-left: calc(var(--logo-width) - 3px);
  }
  .brand-shell {
    padding: 6px 8px;
    border-radius: 8px 8px 4px 4px;
  }
  .brand-logo,
  .custom-logo {
    width: 100px;
    max-height: 80px;
  }
  .menu-toggle {
    display: block;
    margin-top: 18px;
  }
  .site-nav {
    display: none;
    position: absolute;
    z-index: 20;
    top: 74px;
    left: 0;
    right: 0;
    width: auto;
    min-height: 0;
    margin: 0;
    padding: 34px 16px 18px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 0 0 10px 10px;
    box-shadow: 0 12px 24px rgba(0,0,0,.10);
  }
  .site-nav::before { display: none; }
  .site-nav.is-open { display: block; }
  .primary-menu {
    flex-direction: column;
    align-items: stretch;
  }
  .primary-menu a { padding: 13px; }
  .primary-menu .sub-menu {
    display: block;
    position: static;
    min-width: 0;
    margin-left: 14px;
    border: 0;
    box-shadow: none;
    padding: 0 0 0 8px;
  }
  .hero { padding: 54px 0 38px; }
  .button { width: 100%; }
  .button.secondary { margin: 10px 0 0; }
  .sidebar { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}

/* Szerkeszthető felső információs sáv */
.topbar {
  background: #181a1b;
  color: #fff;
  font-size: 0.92rem;
}
.topbar-inner {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-top: 7px;
  padding-bottom: 7px;
}
.topbar-text {
  line-height: 1.4;
}
.topbar-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  padding: 7px 13px;
  border: 1px solid rgba(255,255,255,.55);
  border-radius: 5px;
  color: #fff;
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .03em;
}
.topbar-button:hover,
.topbar-button:focus {
  background: #fff;
  color: #181a1b;
}
@media (max-width: 600px) {
  .topbar-inner {
    align-items: stretch;
    flex-direction: column;
    gap: 6px;
    text-align: center;
    padding-top: 9px;
    padding-bottom: 9px;
  }
  .topbar-button {
    width: 100%;
  }
}

/* WordPressből szerkeszthető lábléc menü */
.footer-branding {
  display: grid;
  gap: 5px;
}
.footer-description {
  opacity: .75;
  font-size: .92rem;
}
.footer-navigation {
  margin-left: auto;
}
.footer-menu {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.footer-menu li {
  margin: 0;
  padding: 0;
}
.footer-menu a {
  color: inherit;
  text-decoration: none;
  opacity: .88;
}
.footer-menu a:hover,
.footer-menu a:focus,
.footer-menu .current-menu-item > a {
  opacity: 1;
  text-decoration: underline;
  text-underline-offset: 4px;
}

@media (max-width: 720px) {
  .footer-navigation {
    width: 100%;
    margin-left: 0;
  }
  .footer-menu {
    justify-content: flex-start;
    gap: 10px 16px;
  }
}
