/*
Theme Name: Humanista Szertartások Modern
Theme URI: https://humanistaszertartasok.hu/
Author: Humanista Szertartások
Description: Egyedi, reszponzív WordPress-téma a Humanista Szertartások honlapjához.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: humanista-szertartasok
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
*/

:root {
  --navy: #17356b;
  --navy-deep: #10274f;
  --terracotta: #b75d49;
  --terracotta-dark: #974936;
  --ink: #202a38;
  --muted: #586273;
  --ivory: #fbfaf7;
  --warm: #f5eee7;
  --soft-blue: #eef6f9;
  --white: #ffffff;
  --line: rgba(23, 53, 107, 0.15);
  --shadow: 0 20px 60px rgba(33, 44, 65, 0.11);
  --radius: 22px;
  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--ivory);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

h1, h2, h3 {
  margin: 0;
  color: var(--navy);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  line-height: 1.08;
  text-wrap: balance;
}
h1 { font-size: clamp(3.1rem, 6.6vw, 6.4rem); letter-spacing: -0.045em; }
h2 { font-size: clamp(2.25rem, 4.3vw, 4.2rem); letter-spacing: -0.035em; }
h3 { font-size: 1.55rem; }
p { margin: 0 0 1.25rem; }

.container { width: min(calc(100% - 40px), var(--container)); margin-inline: auto; }
.section { padding: 110px 0; }
.section-soft { background: var(--soft-blue); }
.section-warm { background: var(--warm); }

.skip-link {
  position: fixed;
  left: 16px;
  top: -60px;
  z-index: 200;
  padding: 10px 16px;
  border-radius: 8px;
  color: var(--white);
  background: var(--navy);
}
.skip-link:focus { top: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(23, 53, 107, 0.08);
  background: rgba(251, 250, 247, 0.94);
  backdrop-filter: blur(18px);
}
.header-inner { min-height: 86px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; flex: 0 0 auto; text-decoration: none; }
.brand img { width: 160px; height: auto; }
.site-nav { display: flex; align-items: center; gap: clamp(17px, 2.2vw, 32px); }
.site-nav > a:not(.button), .footer-nav a {
  position: relative;
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 650;
  text-decoration: none;
}
.site-nav > a:not(.button)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -8px;
  height: 2px;
  background: var(--terracotta);
  transition: right .25s ease;
}
.site-nav > a:hover::after, .site-nav > a:focus-visible::after { right: 0; }
.menu-toggle { display: none; border: 0; background: transparent; padding: 10px; }
.menu-toggle span:not(.sr-only) { display: block; width: 28px; height: 2px; margin: 6px 0; background: var(--navy); transition: .25s ease; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 24px;
  border: 1px solid var(--terracotta);
  border-radius: 999px;
  color: var(--white);
  background: var(--terracotta);
  box-shadow: 0 10px 25px rgba(183, 93, 73, .2);
  font-size: .95rem;
  font-weight: 750;
  line-height: 1;
  text-decoration: none;
  transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
}
.button:hover, .button:focus-visible { transform: translateY(-2px); background: var(--terracotta-dark); box-shadow: 0 14px 30px rgba(183, 93, 73, .28); }
.button-small { min-height: 44px; padding-inline: 20px; }
.button-light { color: var(--terracotta-dark); background: var(--white); border-color: var(--white); box-shadow: none; }
.button-light:hover, .button-light:focus-visible { color: var(--navy); background: #fff9f5; }
.text-link { color: var(--terracotta-dark); font-weight: 750; text-decoration: none; }
.text-link span { display: inline-block; margin-left: 6px; transition: transform .2s ease; }
.text-link:hover span { transform: translateX(4px); }

.eyebrow {
  margin-bottom: 15px;
  color: var(--terracotta-dark);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .16em;
  line-height: 1.4;
  text-transform: uppercase;
}
.eyebrow-light { color: #ffe2d8; }

.hero { overflow: hidden; padding: 48px 0 72px; background: linear-gradient(110deg, #fbfaf7 0 48%, #f2eee8 48% 100%); }
.hero-grid { display: grid; grid-template-columns: .92fr 1.08fr; align-items: center; gap: 48px; min-height: 650px; }
.hero-copy { position: relative; z-index: 2; padding: 40px 0; }
.hero-copy h1 em { color: var(--terracotta); font-style: normal; }
.hero-lead { max-width: 610px; margin-top: 30px; color: var(--muted); font-size: clamp(1.12rem, 1.7vw, 1.35rem); }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 24px; margin-top: 34px; }
.hero-points { display: flex; flex-wrap: wrap; gap: 12px 26px; margin: 38px 0 0; padding: 0; list-style: none; color: var(--navy); font-size: .93rem; font-weight: 700; }
.hero-points li { display: flex; align-items: center; gap: 9px; }
.hero-points li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--terracotta); }
.hero-media { position: relative; width: calc(100% + 8vw); height: 620px; }
.hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(251,250,247,.4), transparent 28%); pointer-events: none; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 56% center; border-radius: 34px 0 0 34px; box-shadow: var(--shadow); }

.section-intro { margin-bottom: 55px; }
.split-intro { display: grid; grid-template-columns: 1fr .8fr; gap: 80px; align-items: end; }
.split-intro p:last-child { margin: 0; color: var(--muted); font-size: 1.12rem; }
.section-heading { max-width: 850px; margin-bottom: 58px; }
.section-heading.centered { margin-inline: auto; text-align: center; }
.section-heading.narrow { max-width: 760px; }
.section-heading > p:last-child { max-width: 720px; margin: 24px auto 0; color: var(--muted); font-size: 1.08rem; }

.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.feature-card { padding: 35px; border: 1px solid rgba(23,53,107,.11); border-radius: var(--radius); background: rgba(255,255,255,.7); }
.feature-card .icon { width: 55px; height: 55px; margin-bottom: 25px; color: var(--terracotta); }
.icon svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.feature-card h3 { margin-bottom: 14px; }
.feature-card p { margin: 0; color: var(--muted); }

.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin: 0; padding: 0; list-style: none; counter-reset: steps; }
.process-grid li { position: relative; padding: 32px 30px 0 0; }
.process-grid li:not(:last-child)::after { content: ""; position: absolute; top: 25px; left: 58px; right: 18px; border-top: 1px dashed rgba(183,93,73,.48); }
.step-number { position: relative; z-index: 1; display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 24px; border: 1px solid rgba(183,93,73,.35); border-radius: 50%; color: var(--terracotta-dark); background: var(--ivory); font-size: .82rem; font-weight: 800; }
.process-grid h3 { margin-bottom: 12px; font-size: 1.38rem; }
.process-grid p { margin: 0; color: var(--muted); font-size: .96rem; }

.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.service-card { overflow: hidden; border-radius: var(--radius); background: var(--white); box-shadow: 0 12px 40px rgba(33,44,65,.08); transition: transform .25s ease, box-shadow .25s ease; }
.service-card:hover { transform: translateY(-6px); box-shadow: 0 20px 55px rgba(33,44,65,.13); }
.service-card img { width: 100%; aspect-ratio: 16/8.5; object-fit: cover; }
.service-content { padding: 28px 30px 32px; }
.service-kicker { margin-bottom: 9px; color: var(--terracotta-dark); font-size: .72rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.service-content h3 { margin-bottom: 14px; font-size: 1.65rem; }
.service-content p:not(.service-kicker) { color: var(--muted); }

.about-grid { display: grid; grid-template-columns: .78fr 1.22fr; gap: 85px; align-items: start; }
.about-copy p { color: var(--muted); }
.about-copy .large-copy { margin-top: 28px; color: var(--navy); font-family: Georgia, serif; font-size: 1.45rem; line-height: 1.45; }
.people-grid { display: grid; gap: 22px; }
.person-card { display: grid; grid-template-columns: 110px 1fr; gap: 24px; align-items: center; padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.initial-avatar { display: grid; place-items: center; width: 110px; height: 130px; border-radius: 16px; color: var(--white); background: linear-gradient(150deg, var(--navy), #5a709d); font-family: Georgia, serif; font-size: 3.4rem; }
.person-card h3 { margin-bottom: 5px; }
.person-card .role { margin-bottom: 10px; color: var(--terracotta-dark); font-size: .86rem; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; }
.person-card p:last-child { margin: 0; color: var(--muted); font-size: .96rem; }

.faq-grid { display: grid; grid-template-columns: .6fr 1fr; gap: 80px; align-items: start; }
.faq-intro { position: sticky; top: 125px; }
.faq-intro > p:last-child { margin-top: 25px; color: var(--muted); }
.accordion details { border-bottom: 1px solid rgba(23,53,107,.16); }
.accordion summary { position: relative; padding: 23px 46px 23px 0; color: var(--navy); font-family: Georgia, serif; font-size: 1.35rem; cursor: pointer; list-style: none; }
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after { content: "+"; position: absolute; right: 5px; top: 20px; color: var(--terracotta); font-family: ui-sans-serif, sans-serif; font-size: 1.7rem; font-weight: 300; }
.accordion details[open] summary::after { content: "−"; }
.accordion details p { max-width: 730px; padding: 0 46px 22px 0; color: var(--muted); }

.contact-section { padding: 85px 0; color: var(--white); background: linear-gradient(120deg, #a94f3d, #c9765e); }
.contact-section h2 { max-width: 780px; color: var(--white); font-size: clamp(2.25rem, 4vw, 4rem); }
.contact-section p { max-width: 700px; margin-top: 24px; color: rgba(255,255,255,.88); }
.contact-grid { display: grid; grid-template-columns: 1fr auto; gap: 70px; align-items: center; }
.contact-actions { display: flex; min-width: 330px; flex-direction: column; align-items: stretch; gap: 17px; text-align: center; }
.phone-link { color: var(--white); font-size: 1.08rem; font-weight: 800; text-decoration: none; }

.site-footer { padding: 52px 0; background: #f7f4ef; }
.footer-grid { display: grid; grid-template-columns: 190px 1fr auto; gap: 45px; align-items: start; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 14px 28px; padding-top: 8px; }
.footer-nav a:hover { color: var(--terracotta-dark); }
.footer-meta { display: grid; gap: 7px; padding-top: 8px; color: var(--muted); font-size: .88rem; text-align: right; }
.footer-meta a { text-decoration: none; }
.footer-meta a:hover { color: var(--terracotta-dark); }

:focus-visible { outline: 3px solid rgba(183,93,73,.48); outline-offset: 4px; }

@media (max-width: 1020px) {
  .site-nav { position: fixed; inset: 86px 20px auto; display: none; padding: 24px; border: 1px solid var(--line); border-radius: 18px; background: var(--ivory); box-shadow: var(--shadow); }
  .site-nav.is-open { display: grid; }
  .site-nav .button { margin-top: 8px; }
  .menu-toggle { display: block; }
  .hero { padding-top: 25px; }
  .hero-grid { grid-template-columns: 1fr; min-height: auto; }
  .hero-copy { max-width: 790px; }
  .hero-media { width: 100%; height: 530px; }
  .hero-media img { border-radius: 28px; }
  .hero-media::after { display: none; }
  .split-intro, .about-grid, .faq-grid, .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .faq-intro { position: static; }
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .feature-card:last-child { grid-column: 1 / -1; }
  .process-grid { grid-template-columns: 1fr 1fr; gap: 34px 20px; }
  .process-grid li::after { display: none; }
  .service-grid { grid-template-columns: 1fr 1fr; }
  .service-card:last-child { grid-column: 1 / -1; max-width: calc(50% - 13px); }
  .contact-actions { min-width: 0; align-items: flex-start; }
  .footer-grid { grid-template-columns: 180px 1fr; }
  .footer-meta { grid-column: 1 / -1; text-align: left; }
}

@media (max-width: 700px) {
  body { font-size: 16px; }
  .container { width: min(calc(100% - 28px), var(--container)); }
  .section { padding: 78px 0; }
  .header-inner { min-height: 74px; }
  .brand img { width: 142px; }
  .site-nav { top: 74px; }
  .hero { background: var(--ivory); padding-bottom: 56px; }
  .hero-grid { gap: 20px; }
  .hero-copy { padding: 34px 0 15px; }
  .hero-lead { margin-top: 22px; }
  .hero-actions { align-items: stretch; flex-direction: column; gap: 16px; }
  .hero-actions .button { width: 100%; }
  .hero-actions .text-link { text-align: center; }
  .hero-points { display: grid; gap: 10px; margin-top: 28px; }
  .hero-media { height: 390px; }
  .hero-media img { object-position: 60% center; border-radius: 22px; }
  .split-intro { gap: 28px; }
  .feature-grid, .process-grid, .service-grid { grid-template-columns: 1fr; }
  .feature-card:last-child, .service-card:last-child { grid-column: auto; max-width: none; }
  .process-grid { gap: 10px; }
  .process-grid li { padding: 22px 0; border-bottom: 1px solid var(--line); }
  .step-number { margin-bottom: 17px; }
  .about-grid { gap: 40px; }
  .person-card { grid-template-columns: 74px 1fr; gap: 17px; padding: 22px; align-items: start; }
  .initial-avatar { width: 74px; height: 88px; font-size: 2.2rem; border-radius: 12px; }
  .faq-grid { gap: 30px; }
  .accordion summary { font-size: 1.2rem; }
  .contact-section { padding: 68px 0; }
  .contact-actions { align-items: stretch; }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
  .footer-meta { grid-column: auto; }
}

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


/* WordPress integration */
body.admin-bar .site-header { top: 32px; }
.person-photo { width: 110px; height: 130px; border-radius: 16px; object-fit: cover; }
.content-shell { min-height: 60vh; }
.entry-card { max-width: 900px; margin: 0 auto; padding: 44px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.entry-title { margin-bottom: 28px; }
.entry-content > * + * { margin-top: 1.2em; }
.entry-content h2, .entry-content h3 { margin-top: 1.5em; }
.entry-content a { color: var(--terracotta-dark); }
.entry-content img { border-radius: 16px; }
.post-list { display: grid; gap: 24px; }
.post-list article { padding: 30px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.post-list h2 { font-size: 2rem; }
.post-list h2 a { text-decoration: none; }
.post-meta { margin-bottom: 15px; color: var(--muted); font-size: .88rem; }
.pagination { margin-top: 36px; }
.error-404 { text-align: center; }
.error-404 .button { margin-top: 18px; }

@media (max-width: 782px) {
  body.admin-bar .site-header { top: 46px; }
}
@media (max-width: 700px) {
  .person-photo { width: 74px; height: 88px; border-radius: 12px; }
  .entry-card { padding: 26px; }
}
