/*
Theme Name: Zöld Sziget
Theme URI: https://zoldszigetallatmenhely.hu
Author: Gyurácz Benjámin
Author URI: https://benjamingyuracz.com
Description: Egyedi téma a Zöld-Sziget Állatvédő Baráti Kör gyepmesteri telepének és menhelyének. A Zöld Sziget – Állatok bővítménnyel együtt használandó.
Version: 1.0.0
Requires at least: 6.2
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: zold-sziget
*/

/* ------------------------------------------------------------------ */
/* Alapok                                                              */
/* ------------------------------------------------------------------ */

:root {
	--zs-accent: #1F5A3D;
	--zs-accent-dark: #143D29;
	--zs-accent-soft: #DDEDE3;
	--zs-ink: #1B2620;
	--zs-text: #3E4A43;
	--zs-muted: #56625B;
	--zs-bg: #F6F4EE;
	--zs-card: #FFFFFF;
	--zs-soft: #F6F4EE;
	--zs-line: #E4E2DA;
	--zs-warm: #FBEBD6;
	--zs-warm-ink: #7A3E0C;
	--zs-radius: 20px;
	--zs-max: 1200px;
	--zs-gutter: clamp(16px, 4vw, 24px);
	--zs-font-display: "Bricolage Grotesque", "Figtree", system-ui, sans-serif;
	--zs-font-body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

body {
	margin: 0;
	background: var(--zs-bg);
	color: var(--zs-ink);
	font-family: var(--zs-font-body);
	font-size: 17px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}

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

a { color: var(--zs-accent); text-underline-offset: 3px; }
a:hover { color: var(--zs-accent-dark); }

:focus-visible { outline: 3px solid var(--zs-accent); outline-offset: 2px; border-radius: 4px; }

h1, h2, h3, h4 {
	font-family: var(--zs-font-display);
	color: var(--zs-ink);
	line-height: 1.1;
	letter-spacing: -0.02em;
	margin: 0 0 0.5em;
}
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); font-weight: 800; }
h3 { font-size: 1.35rem; font-weight: 700; }
p { margin: 0 0 1em; }

.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link:focus {
	position: fixed; left: 16px; top: 16px; z-index: 1000; width: auto; height: auto; clip: auto;
	background: var(--zs-card); padding: 10px 16px; border-radius: 10px; font-weight: 700;
}

.zs-wrap { max-width: var(--zs-max); margin: 0 auto; padding-left: var(--zs-gutter); padding-right: var(--zs-gutter); }

/* ------------------------------------------------------------------ */
/* Fejléc és menü                                                      */
/* ------------------------------------------------------------------ */

.site-header { background: var(--zs-card); border-bottom: 1px solid var(--zs-line); position: relative; z-index: 50; }
.site-header .zs-wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 14px; padding-bottom: 14px; }

.site-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--zs-ink); }
.site-brand:hover { color: var(--zs-ink); }
.site-brand .custom-logo { width: 48px; height: 48px; object-fit: contain; }
.site-brand__mark { width: 48px; height: 48px; border-radius: 50%; background: var(--zs-accent); display: grid; place-items: center; flex-shrink: 0; }
.site-brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.site-brand__name { font-family: var(--zs-font-display); font-weight: 800; font-size: 1.3rem; }
.site-brand__tagline { font-size: 0.8rem; color: var(--zs-muted); }

.site-nav { display: flex; align-items: center; gap: 20px; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 22px; }
.site-nav a { color: var(--zs-ink); text-decoration: none; font-weight: 600; font-size: 1rem; padding: 6px 0; border-bottom: 2px solid transparent; }
.site-nav a:hover,
.site-nav .current-menu-item > a,
.site-nav .current_page_item > a { color: var(--zs-accent); border-bottom-color: var(--zs-accent); }

.zs-phone {
	display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
	background: var(--zs-accent); color: #fff; text-decoration: none; font-weight: 700;
	padding: 11px 18px; border-radius: 999px;
}
.zs-phone:hover { background: var(--zs-accent-dark); color: #fff; }

.menu-toggle {
	display: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--zs-line);
	background: var(--zs-card); cursor: pointer; place-items: center; padding: 0;
}

@media (max-width: 960px) {
	.site-brand__tagline { display: none; }
	.menu-toggle { display: grid; }
	.site-nav { gap: 8px; }
	.site-nav .menu-wrap {
		display: none; position: absolute; left: 0; right: 0; top: 100%;
		background: var(--zs-card); border-bottom: 1px solid var(--zs-line);
		padding: 8px var(--zs-gutter) 20px;
	}
	.site-nav.is-open .menu-wrap { display: block; }
	.site-nav ul { flex-direction: column; gap: 0; }
	.site-nav ul a { display: block; padding: 12px 0; border-bottom: 1px solid var(--zs-line); }
	.zs-phone__label { display: none; }
	.zs-phone { padding: 0; width: 44px; height: 44px; justify-content: center; }
}

/* ------------------------------------------------------------------ */
/* Tartalom                                                            */
/* ------------------------------------------------------------------ */

.site-main { padding: 0 0 72px; }
.page-header { padding: 56px 0 24px; }
.page-header p { color: var(--zs-text); max-width: 720px; font-size: 1.1rem; }

.entry-content > * { max-width: var(--zs-max); margin-left: auto; margin-right: auto; padding-left: var(--zs-gutter); padding-right: var(--zs-gutter); }
.entry-content > .alignfull { max-width: none; padding-left: 0; padding-right: 0; }
.entry-content > .alignfull > * { max-width: var(--zs-max); margin-left: auto !important; margin-right: auto !important; padding-left: var(--zs-gutter); padding-right: var(--zs-gutter); }
.entry-content > .alignfull > .zs-band { padding-left: clamp(28px, 5vw, 48px); padding-right: clamp(28px, 5vw, 48px); max-width: calc(var(--zs-max) - 2 * var(--zs-gutter)); }
.wp-block-columns { gap: 20px; }
.entry-content > .alignwide { max-width: var(--zs-max); }
.entry-content > p,
.entry-content > ul,
.entry-content > ol,
.entry-content > h2,
.entry-content > h3,
.entry-content > table,
.entry-content > .wp-block-table { max-width: 820px; }
.entry-content ul, .entry-content ol { padding-left: calc(var(--zs-gutter) + 1.2em); }
.entry-content > .wp-block-shortcode,
.entry-content > .wp-block-group,
.entry-content > .wp-block-columns { max-width: var(--zs-max); }

.wp-block-table table { border-collapse: collapse; width: 100%; background: var(--zs-card); border-radius: 14px; overflow: hidden; }
.wp-block-table td, .wp-block-table th { padding: 12px 14px; border-bottom: 1px solid var(--zs-line); text-align: left; }
.wp-block-table thead th { font-size: 0.9rem; color: var(--zs-muted); }

/* Gombok */
.wp-block-button__link,
.zs-btn {
	display: inline-block; background: var(--zs-accent); color: #fff; font-weight: 700; text-decoration: none;
	padding: 15px 24px; border-radius: 14px; border: 1.5px solid var(--zs-accent); line-height: 1.2;
}
.wp-block-button__link:hover, .zs-btn:hover { background: var(--zs-accent-dark); border-color: var(--zs-accent-dark); color: #fff; }
.is-style-outline > .wp-block-button__link,
.wp-block-button.is-style-outline .wp-block-button__link { background: var(--zs-card); color: var(--zs-ink); border-color: #CFCBBF; }
.is-style-outline > .wp-block-button__link:hover { background: var(--zs-card); color: var(--zs-accent); border-color: var(--zs-accent); }

/* Kártya-csoport (Gutenberg: „Kártya” stílus) */
.is-style-zs-card { background: var(--zs-card); border-radius: var(--zs-radius); padding: 24px !important; }
.is-style-zs-card > :last-child { margin-bottom: 0; }
.is-style-zs-card .zs-kicker { margin-bottom: 4px; }

/* Szekciók */
.zs-section { padding-top: 72px; padding-bottom: 72px; }
.zs-section--white { background: var(--zs-card); }
.zs-section--tight { padding-top: 0; }
.zs-kicker { font-size: 0.85rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--zs-accent); }
.zs-lead { font-size: 1.2rem; color: var(--zs-text); }

/* Hős */
.zs-hero { padding-top: 64px; padding-bottom: 48px; }
.zs-hero .wp-block-columns { align-items: center; gap: 48px; }
.zs-hero h1 { font-size: clamp(2.4rem, 5.6vw, 4rem); line-height: 1.02; letter-spacing: -0.025em; }
.zs-hero .wp-block-image img,
.zs-hero__photo { border-radius: 28px; width: 100%; aspect-ratio: 1 / 1; object-fit: cover; background: #C9BBA3; }

/* Számok */
.zs-stat-number { font-family: var(--zs-font-display); font-weight: 800; font-size: 2.8rem; line-height: 1; color: var(--zs-accent); margin: 0 0 4px; }

/* Település „chipek” */
.zs-chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0 !important; margin: 0; }
.zs-chips li { background: var(--zs-card); border: 1px solid var(--zs-line); border-radius: 999px; padding: 6px 14px; font-weight: 600; font-size: 0.95rem; }

/* Zöld támogatás sáv */
.zs-band { background: var(--zs-accent); color: #fff; border-radius: 28px; padding: clamp(28px, 5vw, 48px) !important; }
.zs-band h2, .zs-band h3 { color: #fff; }
.zs-band p { color: #DCEBE2; }
.zs-band a:not(.wp-block-button__link) { color: #fff; }
.zs-band .wp-block-button__link { background: #fff; color: var(--zs-accent); border-color: #fff; }
.zs-band .wp-block-button__link:hover { background: var(--zs-accent-soft); color: var(--zs-accent-dark); }
.zs-band__box { background: rgba(255, 255, 255, 0.1); border-radius: 18px; padding: 22px 24px !important; }
.zs-band__box p { margin: 0 0 6px; }
.zs-band__box strong { color: #fff; }

/* ------------------------------------------------------------------ */
/* Állat adatlap                                                       */
/* ------------------------------------------------------------------ */

.zs-animal { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 40px; padding-top: 48px; align-items: start; }
.zs-animal__photo img { width: 100%; border-radius: 24px; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.zs-animal__photo--empty { aspect-ratio: 4 / 3; border-radius: 24px; background: #D9CFBE; }
.zs-animal__body { background: var(--zs-card); border-radius: 24px; padding: 28px; }
.zs-back { display: inline-block; margin-top: 24px; font-weight: 700; }
@media (max-width: 860px) { .zs-animal { grid-template-columns: 1fr; gap: 20px; padding-top: 24px; } }

/* ------------------------------------------------------------------ */
/* Lábléc                                                              */
/* ------------------------------------------------------------------ */

.site-footer { background: var(--zs-ink); color: #C9D2CC; font-size: 0.95rem; }
.site-footer .zs-wrap { display: flex; flex-wrap: wrap; gap: 32px; justify-content: space-between; padding-top: 48px; padding-bottom: 32px; }
.site-footer h2 { color: #fff; font-size: 1.25rem; letter-spacing: 0; margin-bottom: 8px; }
.site-footer h3 { color: #fff; font-family: var(--zs-font-body); font-size: 1rem; letter-spacing: 0; margin-bottom: 8px; }
.site-footer a { color: #C9D2CC; }
.site-footer a:hover { color: #fff; }
.site-footer p { margin: 0 0 4px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 4px; }
.footer-col { flex: 1 1 240px; }
.footer-col--main { flex: 2 1 320px; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.1); }
.footer-bottom .zs-wrap { padding-top: 16px; padding-bottom: 16px; font-size: 0.85rem; }

/* 404 */
.zs-404 { padding-top: 72px; max-width: 720px; }
