/*
Theme Name: FotoQuelle
Theme URI: https://fotoquelle.pl/
Description: Motyw zakładu fotograficznego FotoQuelle (Białystok), zgodny z księgą znaku 1.0: granat, bursztyn i papier, kroje Manrope i Inter. Strona startowa z sekcjami Aktualności, O firmie, Oferta, Sklep, Porady i Kontakt; ustawienia w Wygląd › Dostosuj › FotoQuelle.
Author: FotoQuelle
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: fotoquelle
Tags: one-column, custom-menu, custom-logo, featured-images, translation-ready
*/

:root {
	--fq-navy: #14213D;
	--fq-amber: #F2A23A;
	--fq-paper: #F6F4EF;
	--fq-blue: #2E4A8C;
	--fq-text: #1B1F2A;
	--fq-muted: #4A5368;
	--fq-line: #DDD8CC;
	--fq-bg-blue: #E8EBF2;
	--fq-bg-amber: #FDF1DE;
	--fq-on-navy: #C9D1E3;
	--fq-head: Manrope, Arial, sans-serif;
	--fq-body: Inter, Arial, sans-serif;
	--fq-radius: 16px;
}

/* ---------- Podstawy ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--fq-paper); color: var(--fq-text); font-family: var(--fq-body); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--fq-blue); }
a:hover { color: var(--fq-navy); }
h1, h2, h3, h4 { font-family: var(--fq-head); font-weight: 800; color: var(--fq-navy); line-height: 1.15; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 4.5vw, 3.5rem); letter-spacing: -0.03em; }
h2 { font-size: clamp(1.75rem, 3.2vw, 2.5rem); letter-spacing: -0.02em; }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--fq-amber); outline-offset: 2px; }

.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); white-space: nowrap; }
.fq-skip:focus { clip: auto; width: auto; height: auto; left: 16px; top: 16px; z-index: 1000; background: #fff; color: var(--fq-navy); padding: 12px 16px; border-radius: 8px; }

.fq-wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.fq-icon { flex-shrink: 0; }

/* ---------- Logo ---------- */
.fq-logo { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: #fff; }
.fq-logo:hover { color: #fff; }
.fq-logo__mark { font-family: var(--fq-head); font-weight: 800; font-size: 26px; line-height: 1; letter-spacing: -0.02em; padding-bottom: 6px; border-bottom: 4px solid var(--fq-amber); border-radius: 0 0 2px 2px; }
.fq-logo__word { font-family: var(--fq-head); font-size: 24px; line-height: 1; letter-spacing: -0.02em; padding-bottom: 6px; }
.fq-logo__foto { font-weight: 500; }
.fq-logo__quelle { font-weight: 800; }
.fq-logo--sm .fq-logo__mark { font-size: 22px; border-bottom-width: 3px; }
.fq-logo--sm .fq-logo__word { font-size: 20px; }
.custom-logo-link img { max-height: 48px; width: auto; }

/* ---------- Nagłówek i menu ---------- */
.fq-header { background: var(--fq-navy); position: sticky; top: 0; z-index: 50; }
.admin-bar .fq-header { top: 32px; }
.fq-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 76px; }
.fq-menu-toggle { display: none; align-items: center; gap: 10px; background: transparent; color: #fff; border: 2px solid rgba(255,255,255,.4); border-radius: 8px; padding: 10px 14px; min-height: 44px; font: 600 15px var(--fq-body); cursor: pointer; }
.fq-menu-toggle__bars, .fq-menu-toggle__bars::before, .fq-menu-toggle__bars::after { display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px; position: relative; content: ""; }
.fq-menu-toggle__bars::before { position: absolute; top: -6px; }
.fq-menu-toggle__bars::after { position: absolute; top: 6px; }

.fq-menu { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 4px; }
.fq-menu > li { position: relative; }
.fq-menu a { display: flex; align-items: center; min-height: 44px; padding: 8px 14px; color: #fff; text-decoration: none; font-weight: 500; font-size: 15px; border-radius: 8px; }
.fq-menu > li > a:hover, .fq-menu > li:focus-within > a { background: rgba(255,255,255,.08); color: #fff; }
.fq-menu > .current-menu-item > a, .fq-menu > .current-menu-ancestor > a { box-shadow: inset 0 -3px 0 var(--fq-amber); border-radius: 8px 8px 0 0; }
.fq-menu .menu-item-has-children > a::after { content: ""; width: 7px; height: 7px; margin-left: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-2px) rotate(45deg); }
.fq-menu .sub-menu { list-style: none; margin: 0; padding: 8px; position: absolute; top: 100%; left: 0; min-width: 260px; background: #fff; border-radius: 12px; box-shadow: 0 16px 40px rgba(20,33,61,.18); opacity: 0; visibility: hidden; transform: translateY(6px); transition: .15s ease; }
.fq-menu li:hover > .sub-menu, .fq-menu li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.fq-menu .sub-menu a { color: var(--fq-text); font-size: 15px; }
.fq-menu .sub-menu a:hover { background: var(--fq-bg-blue); color: var(--fq-navy); }

@media (max-width: 1024px) {
	.fq-menu-toggle { display: inline-flex; }
	.fq-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--fq-navy); border-top: 1px solid rgba(255,255,255,.12); padding: 8px 16px 20px; max-height: calc(100vh - 76px); overflow-y: auto; }
	.fq-nav.is-open { display: block; }
	.fq-header__inner { position: relative; }
	.fq-menu { flex-direction: column; align-items: stretch; }
	.fq-menu a { font-size: 17px; }
	.fq-menu .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; display: none; background: transparent; box-shadow: none; padding: 0 0 8px 16px; min-width: 0; }
	.fq-menu .is-open > .sub-menu { display: block; }
	.fq-menu .sub-menu a { color: var(--fq-on-navy); }
	.fq-menu .sub-menu a:hover { background: rgba(255,255,255,.08); color: #fff; }
}
@media (max-width: 782px) { .admin-bar .fq-header { top: 46px; } }

/* ---------- Przyciski i drobne elementy ---------- */
.fq-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.fq-btn { display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 14px 26px; border-radius: 8px; font: 800 16px/1.2 var(--fq-head); text-decoration: none; border: 2px solid transparent; transition: background .15s, color .15s; }
.fq-btn--amber { background: var(--fq-amber); color: var(--fq-navy); }
.fq-btn--amber:hover { background: #E8932A; color: var(--fq-navy); }
.fq-btn--navy { background: var(--fq-navy); color: #fff; }
.fq-btn--navy:hover { background: var(--fq-blue); color: #fff; }
.fq-btn--outline { border-color: var(--fq-navy); color: var(--fq-navy); }
.fq-btn--outline:hover { background: var(--fq-navy); color: #fff; }
.fq-eyebrow { font: 700 14px var(--fq-head); letter-spacing: .14em; text-transform: uppercase; color: var(--fq-blue); margin: 0 0 12px; }
.fq-eyebrow a { color: inherit; text-decoration: none; }
.fq-eyebrow--amber { color: var(--fq-amber); }
.fq-eyebrow--navy { color: var(--fq-navy); }
.fq-more { font: 700 16px var(--fq-head); text-decoration: none; }
.fq-tag { display: inline-block; background: var(--fq-bg-amber); color: var(--fq-navy); font-weight: 600; font-size: 13px; padding: 3px 10px; border-radius: 999px; }
.fq-lead { font-size: 17px; color: var(--fq-muted); }

.fq-placeholder { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; text-align: center; padding: 24px; background: var(--fq-bg-blue); border: 1px solid var(--fq-line); color: var(--fq-blue); }
.fq-placeholder strong { font-family: var(--fq-head); color: var(--fq-navy); }
.fq-placeholder span { font-size: 14px; color: var(--fq-muted); }

/* ---------- Sekcje ---------- */
.fq-section { padding: 96px 0; }
.fq-section--white { background: #fff; border-top: 1px solid var(--fq-line); border-bottom: 1px solid var(--fq-line); padding: 80px 0; }
.fq-section--amber { background: var(--fq-bg-amber); }
.fq-section--blue { background: var(--fq-bg-blue); }
.fq-section__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 24px; margin-bottom: 40px; }
.fq-section__head h2 { margin: 0; max-width: 720px; }
.fq-grid { display: grid; gap: 24px; }
.fq-grid--3 { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.fq-grid--4 { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }

/* Hero */
.fq-hero { padding: 88px 0 96px; }
.fq-hero__inner { display: flex; flex-wrap: wrap; align-items: center; gap: 56px; }
.fq-hero__text { flex: 1 1 460px; min-width: 0; }
.fq-hero__title { margin-bottom: 24px; }
.fq-hero__lead { font-size: 18px; color: var(--fq-muted); max-width: 540px; margin-bottom: 32px; }
.fq-checks { list-style: none; margin: 28px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 28px; font-size: 15px; color: var(--fq-muted); }
.fq-checks li { display: inline-flex; align-items: center; gap: 8px; }
.fq-checks .fq-icon { color: var(--fq-amber); stroke-width: 2.6; }
.fq-hero__media { flex: 1 1 400px; min-width: 0; position: relative; }
.fq-hero__img { width: 100%; aspect-ratio: 4 / 5; max-height: 580px; object-fit: cover; border-radius: var(--fq-radius); }
.fq-hours-badge { position: absolute; left: -16px; bottom: 32px; background: #fff; border-radius: 12px; padding: 16px 20px 18px; box-shadow: 0 12px 32px rgba(20,33,61,.16); display: flex; flex-direction: column; gap: 2px; font-size: 14px; color: var(--fq-muted); border-bottom: 4px solid var(--fq-amber); }
.fq-hours-badge strong { font-family: var(--fq-head); font-size: 16px; color: var(--fq-navy); }
.fq-hero--dark { background: var(--fq-navy); }
.fq-hero--dark .fq-hero__title { color: #fff; }
.fq-hero--dark .fq-hero__lead, .fq-hero--dark .fq-checks { color: var(--fq-on-navy); }
.fq-hero--dark .fq-eyebrow { color: var(--fq-amber); }
.fq-hero--dark .fq-btn--outline { border-color: #fff; color: #fff; }
.fq-hero--dark .fq-btn--outline:hover { background: #fff; color: var(--fq-navy); }

/* Karty wpisów */
.fq-post-card { display: flex; flex-direction: column; gap: 12px; }
.fq-post-card__img { aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; }
.fq-post-card__img img { width: 100%; height: 100%; object-fit: cover; }
.fq-post-card__meta { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--fq-muted); }
.fq-post-card h3 { margin: 0; line-height: 1.3; }
.fq-post-card h3 a { color: var(--fq-navy); text-decoration: none; }
.fq-post-card h3 a:hover { color: var(--fq-blue); text-decoration: underline; }
.fq-post-card p { color: var(--fq-muted); margin: 0; }

/* Karty oferty */
.fq-card { background: #fff; border: 1px solid var(--fq-line); border-radius: var(--fq-radius); padding: 28px; display: flex; flex-direction: column; gap: 12px; }
.fq-card__icon { width: 52px; height: 52px; border-radius: 12px; background: var(--fq-bg-blue); color: var(--fq-blue); display: flex; align-items: center; justify-content: center; }
.fq-card h3 { margin: 4px 0 0; line-height: 1.3; }
.fq-card p { color: var(--fq-muted); margin: 0; flex-grow: 1; font-size: 15px; }
.fq-card__link { font-weight: 600; font-size: 15px; text-decoration: none; padding-top: 12px; border-top: 1px solid var(--fq-line); }

/* Pas granatowy – dokumenty */
.fq-band { background: var(--fq-navy); color: var(--fq-on-navy); padding: 88px 0; }
.fq-band__inner { display: flex; flex-wrap: wrap; align-items: center; gap: 56px; }
.fq-band__text { flex: 1 1 460px; min-width: 0; }
.fq-band h2 { color: #fff; }
.fq-band p { font-size: 17px; max-width: 540px; margin-bottom: 28px; }
.fq-docs { flex: 1 1 420px; min-width: 0; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.fq-docs li { background: #1E2D50; border: 1px solid var(--fq-blue); border-radius: 12px; padding: 18px 20px; display: flex; flex-direction: column; gap: 2px; font-size: 14px; }
.fq-docs strong { font-family: var(--fq-head); font-size: 17px; color: #fff; }

/* O firmie */
.fq-split { display: flex; flex-wrap: wrap; align-items: center; gap: 56px; }
.fq-split__media { flex: 1 1 420px; min-width: 0; }
.fq-split__text { flex: 1 1 480px; min-width: 0; }
.fq-about__img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--fq-radius); }
.fq-values { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 20px; margin: 8px 0 28px; }
.fq-values div { display: flex; flex-direction: column; gap: 4px; font-size: 14px; color: var(--fq-muted); }
.fq-values strong { font-family: var(--fq-head); font-size: 17px; color: var(--fq-navy); padding-top: 12px; border-top: 4px solid var(--fq-amber); width: fit-content; }

/* Sklep */
.fq-shop { display: flex; flex-wrap: wrap; align-items: center; gap: 48px; }
.fq-shop__text { flex: 1 1 480px; min-width: 0; }
.fq-shop__text p { color: var(--fq-muted); font-size: 17px; max-width: 560px; margin-bottom: 28px; }
.fq-steps { flex: 1 1 380px; min-width: 0; list-style: none; counter-reset: fq; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.fq-steps li { counter-increment: fq; background: #fff; border: 1px solid var(--fq-line); border-radius: 12px; padding: 18px 20px 18px 76px; position: relative; display: flex; flex-direction: column; color: var(--fq-muted); font-size: 15px; }
.fq-steps li::before { content: counter(fq, decimal-leading-zero); position: absolute; left: 20px; top: 50%; transform: translateY(-50%); font: 800 26px var(--fq-head); color: var(--fq-navy); }
.fq-steps strong { font-family: var(--fq-head); color: var(--fq-navy); font-size: 17px; }

/* Porady */
.fq-tip { background: #fff; border: 1px solid var(--fq-line); border-radius: var(--fq-radius); padding: 28px; display: flex; flex-direction: column; gap: 10px; text-decoration: none; transition: border-color .15s, box-shadow .15s; }
.fq-tip:hover { border-color: var(--fq-blue); box-shadow: 0 10px 28px rgba(20,33,61,.08); }
.fq-tip__title { font: 800 20px/1.3 var(--fq-head); color: var(--fq-navy); }
.fq-tip__desc { color: var(--fq-muted); font-size: 15px; flex-grow: 1; }
.fq-tip__more { font-weight: 600; font-size: 15px; color: var(--fq-blue); }

/* Kontakt */
.fq-contact { display: flex; flex-wrap: wrap; gap: 48px; }
.fq-contact__info { flex: 1 1 420px; min-width: 0; }
.fq-contact__list { list-style: none; margin: 24px 0 0; padding: 0; display: flex; flex-direction: column; gap: 18px; }
.fq-contact__list li { display: flex; gap: 16px; align-items: flex-start; color: var(--fq-blue); }
.fq-contact__list div { display: flex; flex-direction: column; color: var(--fq-muted); }
.fq-contact__list strong { font-family: var(--fq-head); color: var(--fq-navy); }
.fq-contact__list a { text-decoration: none; }
.fq-contact__box { flex: 1 1 440px; min-width: 0; background: #fff; border: 1px solid var(--fq-line); border-radius: var(--fq-radius); padding: 32px; align-self: flex-start; }
.fq-contact__box p { color: var(--fq-muted); }
.fq-contact__box input:not([type=submit]):not([type=checkbox]), .fq-contact__box textarea, .fq-contact__box select { width: 100%; font: inherit; padding: 12px 14px; min-height: 48px; border: 1px solid var(--fq-line); border-radius: 8px; background: var(--fq-paper); }
.fq-contact__box input[type=submit], .fq-contact__box button { background: var(--fq-amber); color: var(--fq-navy); border: 0; border-radius: 8px; min-height: 52px; padding: 14px 28px; font: 800 16px var(--fq-head); cursor: pointer; }

/* ---------- Podstrony ---------- */
.fq-page-head { background: var(--fq-navy); padding: 64px 0 56px; }
.fq-page-head h1 { color: #fff; margin: 0; }
.fq-page-head__desc { color: var(--fq-on-navy); margin-top: 12px; max-width: 720px; }
.fq-content { max-width: 820px; font-size: 17px; line-height: 1.7; }
.fq-content > * + * { margin-top: 1.1em; }
.fq-content h2 { font-size: 1.75rem; margin-top: 1.8em; }
.fq-content h3 { margin-top: 1.5em; }
.fq-content img { border-radius: 12px; }
.fq-content table { width: 100%; border-collapse: collapse; background: #fff; font-size: 15px; display: block; overflow-x: auto; }
.fq-content th, .fq-content td { border: 1px solid var(--fq-line); padding: 10px 14px; text-align: left; }
.fq-content th { background: var(--fq-bg-blue); font-family: var(--fq-head); color: var(--fq-navy); }
.fq-content blockquote { margin-left: 0; padding: 16px 24px; border-left: 4px solid var(--fq-amber); background: var(--fq-bg-amber); }
.fq-content__thumb { margin: 0 0 32px; }
.fq-children { margin-top: 48px; }
.fq-postnav { display: flex; justify-content: space-between; gap: 24px; margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--fq-line); font-weight: 600; }
.fq-pagination { margin-top: 48px; }
.fq-pagination .nav-links { display: flex; flex-wrap: wrap; gap: 8px; }
.fq-pagination .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 0 12px; border: 1px solid var(--fq-line); border-radius: 8px; background: #fff; text-decoration: none; font-weight: 600; }
.fq-pagination .current { background: var(--fq-navy); border-color: var(--fq-navy); color: #fff; }
.search-form { display: flex; gap: 8px; max-width: 480px; margin: 16px 0; }
.search-form label { flex: 1; }
.search-field { width: 100%; font: inherit; padding: 12px 14px; min-height: 48px; border: 1px solid var(--fq-line); border-radius: 8px; }
.search-submit { background: var(--fq-navy); color: #fff; border: 0; border-radius: 8px; padding: 0 20px; font: 700 15px var(--fq-head); cursor: pointer; }

/* Klasy kolorów z edytora */
.has-granat-color { color: #14213D; } .has-granat-background-color { background-color: #14213D; }
.has-bursztyn-color { color: #F2A23A; } .has-bursztyn-background-color { background-color: #F2A23A; }
.has-papier-color { color: #F6F4EF; } .has-papier-background-color { background-color: #F6F4EF; }
.has-granat-jasny-color { color: #2E4A8C; } .has-granat-jasny-background-color { background-color: #2E4A8C; }
.has-tekst-color { color: #1B1F2A; } .has-tekst-background-color { background-color: #1B1F2A; }
.has-tlo-granatowe-background-color { background-color: #E8EBF2; }
.has-tlo-bursztyn-background-color { background-color: #FDF1DE; }

/* ---------- Stopka ---------- */
.fq-footer { background: var(--fq-navy); color: var(--fq-on-navy); padding: 64px 0 0; font-size: 15px; }
.fq-footer a { color: #fff; }
.fq-footer__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 32px; padding-bottom: 40px; }
.fq-footer__brand p { margin-top: 16px; max-width: 300px; }
.fq-footer__title { font-size: 16px; color: #fff; margin-bottom: 12px; }
.fq-footer__menu { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.fq-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 20px; padding-bottom: 24px; border-top: 1px solid rgba(255,255,255,.12); font-size: 14px; }

@media (max-width: 600px) {
	.fq-section { padding: 64px 0; }
	.fq-hero { padding: 48px 0 64px; }
	.fq-docs { grid-template-columns: 1fr; }
	.fq-hours-badge { left: 12px; bottom: 12px; }
	.fq-contact__box { padding: 24px; }
}

/* Poprawka: podmenu przy prawej krawędzi */
.fq-menu > li:nth-last-child(-n+3) > .sub-menu { left: auto; right: 0; }
.fq-menu .sub-menu { display: none; }
.fq-menu li:hover > .sub-menu, .fq-menu li:focus-within > .sub-menu { display: block; }
