/*
Theme Name: Exim Retail FMCG
Description: Strona Exim Retail FMCG z profilem oferty i archiwum komunikatów spółki.
Version: 1.0.0
Author: TechVision
Requires at least: 6.2
Requires PHP: 7.4
Text Domain: exim-retail-fmcg
*/

:root {
	color-scheme: light;
	--paper: #fdf9f3;
	--ink: #292021;
	--muted: #665759;
	--wine: #702d3e;
	--deep: #42202a;
	--rose: #f2e1df;
	--line: #e4d5d0;
	font-family: system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
body { display: flex; flex-direction: column; min-height: 100vh; margin: 0; background: var(--paper); color: var(--ink); line-height: 1.6; overflow-wrap: anywhere; }
main { flex: 1; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, figure, dl, dd { margin: 0; }
h1, h2 { font-family: Georgia, serif; font-weight: 400; letter-spacing: -.05em; line-height: 1.04; }
h1 { font-size: clamp(2.15rem, 6vw, 4rem); }
h2 { font-size: clamp(2rem, 3.8vw, 3.3rem); }
a { color: var(--wine); text-underline-offset: .22em; }
a:focus-visible { outline: 3px solid #b76d7e; outline-offset: 4px; }
.wrap { width: min(1200px, calc(100% - 64px)); margin-inline: auto; }
.section { padding-block: clamp(38px, 7vw, 92px); }
.site-header { border-bottom: 1px solid var(--line); }
.header-inner, .footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 15px 30px; padding-block: 18px; }
.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--ink); text-decoration: none; }
.brand-mark { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50% 50% 5px 50%; color: white; background: var(--wine); font: italic 1.55rem Georgia, serif; }
.brand-text { font: 1.65rem/.96 Georgia, serif; }
.brand-text strong { color: var(--wine); font-weight: 400; }
.brand-text small { display: block; margin-top: 5px; font: 750 .57rem/1 system-ui, sans-serif; letter-spacing: .24em; }
.header-inner nav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 22px; }
.header-inner nav a { font-size: .9rem; font-weight: 700; text-decoration: none; }
.header-inner nav a:hover { text-decoration: underline; }
.header-inner .notice-nav { padding: 8px 13px; border: 1px solid var(--wine); }
.header-inner .notice-nav[aria-current] { background: var(--wine); color: white; }
.storefront { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: center; gap: clamp(18px, 4vw, 68px); padding-block: clamp(26px, 5vw, 64px); }
.storefront h1 { margin: 12px 0 20px; font-size: clamp(3rem, 6.6vw, 6.5rem); color: var(--deep); }
.section-label { font-size: .75rem; text-transform: uppercase; font-weight: 800; letter-spacing: .16em; color: var(--wine); }
.storefront-copy > p:not(.section-label), .company-copy p { max-width: 42ch; color: var(--muted); font-size: 1.075rem; }
.storefront-photo img { width: 100%; aspect-ratio: 1.33; object-fit: cover; border-radius: 110px 10px 10px 10px; }
figcaption { margin-top: 6px; font-size: .75rem; text-align: right; color: var(--muted); }
.button { display: inline-flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 17px; background: var(--wine); color: white; font-weight: 750; text-decoration: none; }
.button:hover { background: var(--deep); }
.storefront .button, .company .text-link { margin-top: 24px; }
.notice-strip { background: var(--deep); color: white; }
.notice-strip-inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px 32px; padding-block: 24px; }
.notice-strip h2 { font-size: clamp(1.65rem, 3vw, 2.4rem); }
.notice-strip p { margin-top: 6px; color: #f1dfe2; }
.button-light { background: var(--paper); color: var(--deep); }
.button-light:hover { background: var(--rose); }
.offer { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); align-items: center; gap: clamp(24px, 6vw, 88px); }
.offer-photo img { width: 100%; aspect-ratio: 1.15; object-fit: cover; border-radius: 8px 8px 85px 8px; }
.offer-list { margin-top: 20px; }
.offer-list > div { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 5px 18px; border-top: 1px solid var(--line); padding-block: 14px; }
.offer-list dt { font-weight: 750; }
.offer-list dd { color: var(--muted); }
.company-section { background: var(--rose); }
.company { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); align-items: center; gap: 20px 72px; }
.company h2 { margin-top: 9px; color: var(--deep); }
.site-footer { color: white; background: var(--deep); }
.site-footer a { color: white; }
.hero { background: var(--rose); color: var(--deep); }
.hero-inner { padding-block: clamp(38px, 7vw, 82px); }
.hero-description { margin-top: 12px; color: var(--muted); }
.breadcrumb { display: inline-block; margin-bottom: 14px; }
.text-link { display: inline-block; font-weight: 750; }
.notice-list { margin-top: 22px; }
.notice-card, .empty { border-bottom: 1px solid var(--line); background: white; }
.empty { padding: 20px; color: var(--muted); }
.notice-card { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 16px; padding: 15px; margin: 0 0 8px; }
.notice-card h2, .notice-card h3 { font: 750 clamp(1.05rem, 3vw, 1.35rem)/1.3 system-ui, sans-serif; letter-spacing: normal; }
.notice-card p, .document-date { color: var(--muted); margin-top: 6px; }
.notice-date { min-width: 63px; display: grid; justify-items: center; padding: 8px; color: var(--deep); background: var(--rose); font-variant-numeric: tabular-nums; }
.notice-date strong { line-height: 1.12; font-size: 1.4rem; }
.notice-date span { font-size: .75rem; }
.notice-arrow { color: var(--wine); }
.document { max-width: 850px; margin-inline: auto; padding: clamp(18px, 5vw, 48px); background: white; border: 1px solid var(--line); }
.document h1, .document-content { margin-top: 16px; }
.document-content > * + * { margin-top: 1em; }
.wp-block-file .wp-block-file__button { display: inline-block; background: var(--wine); color: white; }
.page-numbers { display: inline-block; padding: 4px 8px; }
.skip-link, .screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.skip-link:focus { z-index: 5; left: 12px; top: 12px; width: auto; height: auto; clip-path: none; padding: 8px 14px; background: white; }
@media (max-width: 760px) {
	.wrap { width: calc(100% - 36px); }
	.storefront, .offer, .company { grid-template-columns: minmax(0, 1fr); }
	.storefront-photo img { aspect-ratio: 1.65; border-top-left-radius: 54px; }
	.offer-photo { grid-row: 2; }
	.offer-photo img { aspect-ratio: 1.65; border-bottom-right-radius: 48px; }
}
@media (max-width: 420px) {
	.header-inner nav { gap: 8px 14px; }
	.header-inner nav a { font-size: .83rem; }
	.offer-list > div, .notice-card { gap: 8px; }
	.notice-card { grid-template-columns: auto minmax(0, 1fr); }
	.notice-arrow { display: none; }
}
