/* Verba — komponenty wielokrotnego użytku: header, footer, pill, placeholder, formularze */

/* =========================================================
   HEADER (sticky)
   ========================================================= */
/* Header — jednolity zielony pas, logo dotyka góry i dołu paska.
   Tło dokładnie takie samo jak tło PNG-loga, więc nie widać szwu. */
.ed-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: var(--green-deep);
	border-bottom: 0;
	transition: box-shadow 250ms ease;
}
.ed-header.is-scrolled {
	box-shadow: 0 4px 18px rgba(31, 42, 34, 0.18);
}
.ed-header__inner {
	max-width: var(--container-max);
	margin: 0 auto;
	padding: 0 var(--space-section-x);
	display: grid;
	grid-template-columns: auto 1fr auto;
	align-items: center;
	gap: 32px;
}
.ed-header__brand {
	display: flex;
	align-items: center;
	gap: 14px;
	text-decoration: none;
}
/* Domyślne logo (custom-logo z WP, np. JPG) — kropla okrągła. */
.ed-header__logo {
	width: 56px;
	height: 56px;
	border-radius: 50%;
	object-fit: cover;
	flex-shrink: 0;
	display: block;
}
/* Logo Verby (znak z wbudowanym napisem) — bez crop do kółka, znacznie większe,
   szerokość auto żeby zachować proporcje (PNG ~1.4:1). Klientka prosiła
   o „duże i dobrze widoczne", więc dobrana wysokość 110–140 px (desktop). */
.ed-header__brand--logo-only .ed-header__logo {
	width: auto;
	height: 96px;
	max-height: 22vw;
	border-radius: 0;
	object-fit: contain;
}
.ed-header__brand-text { display: flex; flex-direction: column; line-height: 1; }
.ed-header__brand-name {
	font-family: var(--font-serif);
	font-size: 24px;
	color: var(--paper);
	letter-spacing: 0.01em;
	font-weight: 400;
}
.ed-header__brand-sub {
	font-family: var(--font-mono);
	font-size: 10px;
	letter-spacing: var(--ls-label);
	text-transform: uppercase;
	color: rgba(243, 236, 219, 0.7);
	margin-top: 4px;
}

/* Nawigacja — desktop */
.ed-nav { display: none; justify-content: center; }
.ed-nav__list { display: flex; gap: 36px; align-items: center; }
.ed-nav__link {
	font-family: var(--font-sans);
	font-size: 14px;
	color: var(--paper);
	position: relative;
	padding-bottom: 4px;
	opacity: 0.75;
	transition: opacity 200ms ease;
}
.ed-nav__link:hover { opacity: 1; }
.ed-nav__link.is-active,
.ed-nav__link.current-menu-item,
.current-menu-item > .ed-nav__link {
	color: var(--paper);
	opacity: 1;
}
.ed-nav__link.is-active::after,
.current-menu-item > .ed-nav__link::after {
	content: '';
	position: absolute;
	left: 0; right: 0; bottom: -2px;
	height: 1px;
	background: var(--cream);
}

/* CTA pill (header) — biała obwódka i napis na zielonym tle, hover wypełnia bielą. */
.ed-cta {
	display: none;
	font-family: var(--font-sans);
	font-size: 13px;
	letter-spacing: var(--ls-cta);
	padding: 11px 22px;
	border: 1px solid var(--paper);
	color: var(--paper);
	background: transparent;
	border-radius: var(--radius-pill);
	text-decoration: none;
	transition: background 200ms ease, color 200ms ease;
}
.ed-cta:hover { background: var(--paper); color: var(--green-deep); }

/* Hamburger (mobile only) */
.ed-hamburger {
	display: inline-flex;
	flex-direction: column;
	justify-content: center;
	gap: 5px;
	width: 40px; height: 40px;
	margin-left: auto;
}
.ed-hamburger span {
	display: block;
	width: 22px; height: 1px;
	background: var(--paper);
	margin-left: auto;
	transition: transform 250ms ease, opacity 200ms ease, width 200ms ease;
}
.ed-hamburger span:nth-child(2) { width: 18px; }
.ed-hamburger.is-open span:nth-child(1) { transform: translateY(6px) rotate(45deg); width: 22px; }
.ed-hamburger.is-open span:nth-child(2) { opacity: 0; }
.ed-hamburger.is-open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); width: 22px; }

/* Drawer (mobile menu) */
.ed-drawer {
	position: fixed;
	top: 0; right: 0;
	height: 100vh;
	width: min(360px, 86vw);
	background: var(--paper);
	border-left: var(--border-soft);
	padding: 96px 32px 32px;
	transform: translateX(100%);
	transition: transform 300ms cubic-bezier(.4, 0, .2, 1);
	z-index: 99;
	overflow-y: auto;
}
.ed-drawer.is-open { transform: translateX(0); box-shadow: -10px 0 40px rgba(31, 42, 34, 0.08); }
.ed-drawer__list { display: flex; flex-direction: column; gap: 18px; }
.ed-drawer__link {
	font-family: var(--font-serif);
	font-size: 24px;
	color: var(--green-deep);
	display: block;
	padding: 8px 0;
	border-bottom: var(--border-soft);
}
.ed-drawer__cta {
	margin-top: 32px;
	display: inline-flex;
	font-family: var(--font-sans);
	font-size: 14px;
	letter-spacing: var(--ls-cta);
	padding: 14px 28px;
	background: var(--green-deep);
	color: var(--paper);
	border-radius: var(--radius-pill);
	text-decoration: none;
}

.ed-drawer-backdrop {
	position: fixed;
	inset: 0;
	background: rgba(31, 42, 34, 0.4);
	opacity: 0;
	pointer-events: none;
	transition: opacity 250ms ease;
	z-index: 98;
}
.ed-drawer-backdrop.is-open { opacity: 1; pointer-events: auto; }

/* =========================================================
   FOOTER
   ========================================================= */
.ed-footer {
	background: var(--green-deep);
	color: rgba(243, 236, 219, 0.85);
}
.ed-footer__inner {
	max-width: var(--container-max);
	margin: 0 auto;
	padding: 60px var(--space-section-x) 72px;
	display: flex;
	flex-direction: column;
	gap: 24px;
	align-items: flex-start;
	justify-content: space-between;
}
.ed-footer__brand {
	font-family: var(--font-serif);
	font-size: 22px;
	color: var(--cream-deep);
	font-weight: 400;
}
.ed-footer__legal {
	font-family: var(--font-mono);
	font-size: 11px;
	letter-spacing: var(--ls-meta);
	text-transform: uppercase;
	color: rgba(243, 236, 219, 0.6);
}

/* =========================================================
   PILL BUTTONS
   ========================================================= */
.ed-pill {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-family: var(--font-sans);
	font-size: 14px;
	letter-spacing: var(--ls-cta);
	padding: 16px 32px;
	border-radius: var(--radius-pill);
	text-decoration: none;
	border: 1px solid transparent;
	transition: background 200ms ease, color 200ms ease, border-color 200ms ease;
	cursor: pointer;
	line-height: 1;
}
.ed-pill--primary {
	background: var(--green-deep);
	color: var(--paper);
}
.ed-pill--primary:hover { background: #26402d; }
.ed-pill--ghost {
	background: transparent;
	color: var(--green-deep);
	border-color: var(--green-deep);
}
.ed-pill--ghost:hover { background: var(--green-deep); color: var(--paper); }

.ed-link-underline {
	color: var(--green-deep);
	font-size: 14px;
	letter-spacing: var(--ls-cta);
	border-bottom: 1px solid var(--green-deep);
	padding-bottom: 4px;
	display: inline-block;
	text-decoration: none;
	transition: border-bottom-width 150ms ease, padding-bottom 150ms ease;
}
.ed-link-underline:hover {
	border-bottom-width: 2px;
	padding-bottom: 3px;
}

/* =========================================================
   PHOTO PLACEHOLDER (.ph) — z handoffu
   ========================================================= */
.ph {
	position: relative;
	background-color: var(--cream-deep);
	background-image: repeating-linear-gradient(
		135deg,
		rgba(122, 79, 42, 0.10) 0px,
		rgba(122, 79, 42, 0.10) 1px,
		transparent 1px,
		transparent 14px
	);
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	color: var(--brown);
}
.ph--green {
	background-color: var(--green-mid);
	background-image: repeating-linear-gradient(
		135deg,
		rgba(255, 255, 255, 0.10) 0px,
		rgba(255, 255, 255, 0.10) 1px,
		transparent 1px,
		transparent 14px
	);
	color: rgba(255, 255, 255, 0.85);
}
.ph--cream {
	background-color: var(--cream);
	background-image: repeating-linear-gradient(
		135deg,
		rgba(47, 74, 54, 0.08) 0px,
		rgba(47, 74, 54, 0.08) 1px,
		transparent 1px,
		transparent 14px
	);
	color: var(--green-deep);
}
.ph__label {
	font-family: var(--font-mono);
	font-size: 11px;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	padding: 6px 10px;
	background: rgba(255, 255, 255, 0.85);
	color: var(--ink);
	border-radius: 2px;
	text-align: center;
	max-width: 78%;
	line-height: 1.35;
	white-space: pre-line;
}
.ph--green .ph__label { background: rgba(0, 0, 0, 0.35); color: rgba(255, 255, 255, 0.95); }

/* Photo container — gdy dostarczone foto, zastępuje placeholder */
.ed-photo {
	position: relative;
	overflow: hidden;
	background: var(--cream-deep);
}
.ed-photo img {
	width: 100%; height: 100%;
	object-fit: cover;
	display: block;
}

/* =========================================================
   FORMULARZ (Contact Form 7 + nasze klasy)
   ========================================================= */
.ed-form-wrap {
	background: var(--paper);
	padding: clamp(28px, 4vw, 48px);
	border: var(--border-soft);
}
.ed-form-wrap .wpcf7-form { display: block; }

/* CF7 generuje <p> wokół pól — robimy z nich grid */
.ed-form-wrap .wpcf7-form p {
	margin: 0 0 28px;
	display: block;
}

/* Label każdego pola */
.ed-form-wrap label,
.ed-form__label {
	display: block;
	font-family: var(--font-mono);
	font-size: 10px;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--brown);
	margin-bottom: 8px;
}

/* Pola input + textarea */
.ed-form-wrap input[type="text"],
.ed-form-wrap input[type="email"],
.ed-form-wrap input[type="tel"],
.ed-form-wrap input[type="url"],
.ed-form-wrap textarea,
.ed-form__field {
	width: 100%;
	padding: 12px 0;
	border: none;
	border-bottom: var(--border-form);
	background: transparent;
	font-size: 16px;
	font-family: var(--font-sans);
	color: var(--ink);
	border-radius: 0;
	transition: border-color 200ms ease;
}
.ed-form-wrap textarea {
	resize: vertical;
	min-height: 100px;
}
.ed-form-wrap input:focus,
.ed-form-wrap textarea:focus {
	outline: none;
	border-bottom-color: var(--green-deep);
}

/* Row (Imię + Telefon obok siebie) */
.ed-form__row {
	display: grid;
	grid-template-columns: 1fr;
	gap: 0;
}

/* Submit pill */
.ed-form-wrap input[type="submit"],
.ed-form-wrap .wpcf7-submit,
.ed-form__submit {
	width: 100%;
	padding: 16px;
	background: var(--green-deep);
	color: var(--paper);
	font-size: 14px;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	border-radius: var(--radius-pill);
	margin-top: 12px;
	border: none;
	cursor: pointer;
	font-family: var(--font-sans);
	transition: background 200ms ease;
}
.ed-form-wrap input[type="submit"]:hover,
.ed-form-wrap .wpcf7-submit:hover,
.ed-form__submit:hover { background: #26402d; }

/* Checkbox RODO */
.ed-form-wrap .wpcf7-acceptance .wpcf7-list-item {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	margin: 0;
}
.ed-form-wrap .wpcf7-acceptance .wpcf7-list-item-label {
	font-family: var(--font-sans);
	font-size: 13px;
	color: var(--text-soft);
	line-height: 1.5;
	letter-spacing: 0;
	text-transform: none;
}
.ed-form-wrap input[type="checkbox"] {
	width: 16px; height: 16px;
	flex-shrink: 0;
	margin-top: 3px;
	accent-color: var(--green-deep);
}

/* Komunikaty CF7 */
.ed-form-wrap .wpcf7-response-output {
	margin: 18px 0 0;
	padding: 14px 18px;
	border: var(--border-soft);
	font-family: var(--font-sans);
	font-size: 14px;
	color: var(--ink);
}
.ed-form-wrap .wpcf7-mail-sent-ok { border-color: var(--green-soft); background: rgba(90, 122, 100, 0.08); }
.ed-form-wrap .wpcf7-validation-errors,
.ed-form-wrap .wpcf7-acceptance-missing { border-color: var(--brown); background: rgba(122, 79, 42, 0.06); }

.ed-form-wrap .wpcf7-not-valid-tip {
	font-family: var(--font-mono);
	font-size: 11px;
	color: var(--brown);
	margin-top: 6px;
	letter-spacing: 0.04em;
}

/* Notka pod formularzem */
.ed-form__note {
	font-size: 12px;
	color: var(--muted);
	margin-top: 18px;
	text-align: center;
}

/* =========================================================
   PAGE HEADER (eyebrow + tytuł + lead) — wspólny wzór podstron
   ========================================================= */
.ed-page__eyebrow {
	font-family: var(--font-mono);
	font-size: var(--fs-eyebrow);
	letter-spacing: var(--ls-eyebrow);
	text-transform: uppercase;
	color: var(--brown);
	margin-bottom: 14px;
	display: block;
}
.ed-page__head {
	max-width: 880px;
}
.ed-page__lead {
	font-family: var(--font-serif);
	font-style: italic;
	font-size: var(--fs-pull);
	line-height: 1.45;
	color: var(--green-deep);
	margin-top: 22px;
	max-width: 720px;
	font-weight: 400;
}

/* =========================================================
   PAGE CTA BAND — dolna sekcja zachęcająca do kontaktu
   ========================================================= */
.ed-page-cta {
	background: var(--green-deep);
	color: var(--cream);
	padding: clamp(56px, 8vw, 96px) var(--space-section-x);
	margin-top: clamp(72px, 10vw, 120px);
}
.ed-page-cta__inner {
	max-width: 880px;
	margin: 0 auto;
	display: flex;
	flex-direction: column;
	gap: 28px;
	align-items: flex-start;
	text-align: left;
}
.ed-page-cta__eyebrow {
	font-family: var(--font-mono);
	font-size: var(--fs-eyebrow-s);
	letter-spacing: var(--ls-label);
	text-transform: uppercase;
	color: var(--cream-deep);
	opacity: 0.75;
}
.ed-page-cta__title {
	font-family: var(--font-serif);
	font-size: var(--fs-h2-md);
	line-height: var(--lh-h2-md);
	color: var(--paper);
	font-weight: 400;
	margin: 0;
}
.ed-page-cta__title em {
	color: var(--cream);
	font-style: italic;
	font-weight: 500;
}
.ed-page-cta__lead {
	font-family: var(--font-sans);
	font-size: var(--fs-body);
	line-height: var(--lh-body);
	color: rgba(243, 236, 219, 0.85);
	max-width: 580px;
}
.ed-page-cta__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 16px 24px;
	align-items: center;
	margin-top: 8px;
}
.ed-page-cta .ed-pill--primary {
	background: var(--cream);
	color: var(--green-deep);
}
.ed-page-cta .ed-pill--primary:hover { background: var(--paper); }
.ed-page-cta .ed-link-underline {
	color: var(--cream);
	border-bottom-color: var(--cream);
}

/* =========================================================
   ADDRESS CARD — karta z adresem, godzinami, mapką
   ========================================================= */
.ed-address {
	background: var(--cream);
	padding: clamp(28px, 4vw, 48px);
	display: grid;
	grid-template-columns: 1fr;
	gap: 28px;
	margin-bottom: clamp(56px, 7vw, 96px);
}
.ed-address__col {
	display: flex;
	flex-direction: column;
	gap: 8px;
}
.ed-address__label {
	font-family: var(--font-mono);
	font-size: var(--fs-eyebrow-s);
	letter-spacing: var(--ls-label);
	text-transform: uppercase;
	color: var(--brown);
	margin-bottom: 4px;
}
.ed-address__body {
	font-family: var(--font-serif);
	font-size: 22px;
	line-height: 1.45;
	color: var(--green-deep);
	font-weight: 400;
}
.ed-address__body p { margin: 0 0 6px; }
.ed-address__map {
	display: inline-flex;
	margin-top: 8px;
	font-family: var(--font-sans);
	font-size: 13px;
	letter-spacing: var(--ls-cta);
	color: var(--green-deep);
	border-bottom: 1px solid var(--green-deep);
	padding-bottom: 3px;
	text-decoration: none;
	width: max-content;
}
.ed-address__map:hover { border-bottom-width: 2px; padding-bottom: 2px; }

@media (min-width: 768px) {
	.ed-address { grid-template-columns: 1fr 1fr; gap: 48px; }
}

/* =========================================================
   RESPONSIVE — header
   ========================================================= */
/* Mobile — logo musi się zmieścić obok hamburgera, więc nieco mniejsze
   (ale wciąż dobrze czytelne — przy 1.4:1 to ~90 px szerokości). */
@media (max-width: 767px) {
	.ed-header__brand--logo-only .ed-header__logo { height: 64px; }
	/* Po zescrollowaniu kolapsujemy do 56 px, żeby header był kompaktowy. */
	.ed-header.is-scrolled .ed-header__brand--logo-only .ed-header__logo { height: 56px; }
}

@media (min-width: 1024px) {
	/* Padding pionowy = 0 → logo definiuje wysokość headera 1:1 (brak luki pod logo). */
	.ed-header__inner { padding: 0 var(--space-section-x); }
	.ed-nav { display: flex; }
	.ed-cta { display: inline-flex; }
	.ed-hamburger { display: none; }

	/* Desktop — duże, eksponowane logo (klientka prosiła „bardziej widoczne").
	   Po scrollu kolapsujemy do ~80 px, żeby sticky header nie zjadał viewportu. */
	.ed-header__brand--logo-only .ed-header__logo { height: 120px; transition: height 200ms ease; }
	.ed-header.is-scrolled .ed-header__brand--logo-only .ed-header__logo { height: 80px; }

	.ed-form__row { grid-template-columns: 1fr 1fr; gap: 32px; }
	.ed-form__row p { margin-bottom: 0 !important; }

	.ed-footer__inner { flex-direction: row; align-items: center; }
}

@media (min-width: 1280px) {
	/* Pełen rozmiar tylko na dużych ekranach. */
	.ed-header__brand--logo-only .ed-header__logo { height: 140px; }
	.ed-header.is-scrolled .ed-header__brand--logo-only .ed-header__logo { height: 96px; }
}
