/* ------------------------------------------------------------------
   AGRO Jevišovice - front-end styles
   Palette/type/layout taken from the approved homepage design mockup.
   ------------------------------------------------------------------ */
:root {
	--green: #154f35;
	--green2: #20704a;
	--lime: #a7c63d;
	--ink: #173128;
	--muted: #5a675f;
	--cream: #f5f5ed;
	--line: #dfe4dc;
	--white: #fff;
	--shadow: 0 18px 50px rgba(16, 55, 36, .12);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: 'Manrope', Arial, sans-serif; color: var(--ink); background: #fff; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.wrap { width: min(1240px, calc(100% - 48px)); margin: auto; }

.skip-link {
	position: absolute; left: -9999px; top: 0; z-index: 1000;
	background: var(--green); color: #fff; padding: 10px 16px; border-radius: 0 0 4px 0;
}
.skip-link:focus { left: 0; }
:focus-visible { outline: 3px solid var(--lime); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	* { animation: none !important; transition: none !important; }
}

.topbar { background: var(--green); color: #fff; font-size: 13px; }
.topbar .wrap { height: 38px; display: flex; align-items: center; justify-content: flex-end; gap: 24px; }
.topbar a { opacity: .9; }
.topbar a:hover { opacity: 1; }

header { background: #fff; border-bottom: 1px solid #ebeee9; position: relative; z-index: 10; }
.head { height: 100px; display: flex; align-items: center; gap: 44px; }
.logo { display: flex; align-items: center; height: 100%; }
.logo-badge {
	display: flex; align-items: center; justify-content: center;
	width: 140px; height: 140px; border-radius: 50%; background: #fff;
	box-shadow: 0 4px 14px rgba(0, 0, 0, .15); margin-top: -24px; padding: 28px;
}
.logo img { height: 84px; width: auto; }
.nav-details { margin-left: auto; }
.header-extras { display: flex; align-items: center; gap: 20px; margin-left: 28px; }
.header-extras a { color: var(--muted); display: flex; align-items: center; }
.header-extras a:hover { color: var(--green); }
.header-agrofert img { height: 15px; width: auto; display: block; }
.nav { display: flex; align-items: center; gap: 27px; font-size: 14px; font-weight: 700; }
.nav a { position: relative; padding: 35px 0; }
.nav a:after { content: ""; position: absolute; left: 0; right: 100%; bottom: 25px; height: 2px; background: var(--lime); transition: .2s; }
.nav a:hover:after, .nav a.active:after { right: 0; }
/* .menu is a <summary> — native disclosure toggle, no JS needed. Works
   without JS on every screen size (nav is a plain list when JS/CSS-hidden
   details aren't understood at all); the details/summary pair only changes
   how it's presented on narrow screens. */
.menu { display: none; list-style: none; border: 0; background: none; padding: 8px; cursor: pointer; }
.menu::-webkit-details-marker { display: none; }
.menu span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; }

.hero {
	min-height: 520px; position: relative; color: #fff; display: grid; align-items: center;
	background: linear-gradient(90deg, rgba(10, 47, 31, .88), rgba(10, 47, 31, .5) 58%, rgba(10, 47, 31, .28)), url('../img/hero-home.jpg') center/cover;
}
/* image-set() is ignored by browsers that don't support it, keeping the JPG
   fallback above; supporting browsers use the smaller WebP instead. */
.hero {
	background: linear-gradient(90deg, rgba(10, 47, 31, .88), rgba(10, 47, 31, .5) 58%, rgba(10, 47, 31, .28)), image-set(url('../img/hero-home.webp') 1x) center/cover;
}
.hero:after { content: ""; position: absolute; inset: auto 0 0; height: 110px; background: linear-gradient(transparent, rgba(8, 36, 24, .28)); pointer-events: none; }
.hero-content { position: relative; z-index: 1; max-width: 720px; padding: 72px 0 160px; }
.eyebrow { display: flex; align-items: center; gap: 10px; text-transform: uppercase; letter-spacing: .18em; font-weight: 800; font-size: 12px; color: #d8ea9c; }
.eyebrow:before { content: ""; width: 32px; height: 2px; background: var(--lime); }
.hero h1 { font-size: clamp(36px, 5.5vw, 64px); line-height: 1.06; letter-spacing: -.04em; margin: 18px 0; }
.hero p { font-size: 18px; line-height: 1.65; max-width: 620px; color: rgba(255, 255, 255, .9); }
.btn {
	display: inline-flex; align-items: center; gap: 12px; margin-top: 20px; background: var(--lime); color: #17351f;
	padding: 14px 22px; border-radius: 3px; font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; border: 0; cursor: pointer;
}
.btn span { font-size: 19px; }
.btn-outline { background: transparent; border: 2px solid var(--green); color: var(--green); }
.btn-ghost { background: transparent; border: 2px solid rgba(255, 255, 255, .6); color: #fff; }

.crossroad { position: relative; z-index: 3; margin-top: -105px; }
.crossroad-grid { display: grid; grid-template-columns: repeat(6, 1fr); background: #fff; border-radius: 6px; box-shadow: var(--shadow); padding: 10px 14px; }
.tile {
	min-height: 170px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 16px;
	padding: 16px 8px; position: relative; font-size: 12px; line-height: 1.35; font-weight: 800; letter-spacing: .035em; text-transform: uppercase; transition: .2s;
}
.tile:not(:last-child):after { content: ""; position: absolute; right: 0; top: 30px; bottom: 30px; width: 1px; background: #e6e9e3; }
.tile:hover { color: var(--green2); transform: translateY(-3px); }
.ico { width: 54px; height: 54px; color: var(--green2); }
.ico svg { width: 100%; height: 100%; stroke: currentColor; fill: none; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }

section { padding: 92px 0; }
.section-tag { text-transform: uppercase; color: var(--green2); font-weight: 800; letter-spacing: .16em; font-size: 12px; }
.section-title { font-size: clamp(28px, 3.5vw, 44px); letter-spacing: -.035em; line-height: 1.15; margin: 12px 0 38px; }
.news { padding-top: 110px; }
.news-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; }
.column-head { display: flex; justify-content: space-between; align-items: end; border-bottom: 2px solid var(--green); padding-bottom: 16px; }
.column-head h2 { margin: 0; font-size: 24px; }
.more { color: var(--green2); font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.article { display: grid; grid-template-columns: 82px 1fr; gap: 20px; padding: 25px 0; border-bottom: 1px solid var(--line); }
.date { color: var(--green2); font-size: 11px; line-height: 1.3; text-transform: uppercase; font-weight: 800; }
.article h3 { margin: 0 0 8px; font-size: 17px; line-height: 1.45; }
.article p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.55; }
.article:hover h3 { color: var(--green2); }
.empty { color: var(--muted); font-size: 14px; }

.about { background: var(--cream); padding: 100px 0; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.photo { position: relative; }
.photo picture { display: block; }
.photo img { width: 100%; height: 440px; object-fit: cover; border-radius: 4px; }
.stamp { position: absolute; z-index: 1; right: -20px; bottom: -20px; background: var(--green); color: #fff; width: 180px; padding: 18px 20px; display: flex; flex-direction: column; justify-content: center; }
.stamp strong { font-size: 18px; line-height: 1.3; }
.stamp span { font-size: 11px; line-height: 1.4; text-transform: uppercase; letter-spacing: .06em; margin-top: 6px; }
.about p { color: var(--muted); line-height: 1.75; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 30px; }
.fact { border-left: 3px solid var(--lime); padding-left: 14px; }
.fact strong { display: block; font-size: 21px; }
.fact span { font-size: 12px; color: var(--muted); }

footer { background: #0d3726; color: #fff; padding: 55px 0 25px; }
.foot { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 60px; }
.foot-logo { filter: brightness(0) invert(1); width: 190px; height: auto; margin-bottom: 20px; }
.foot p, .foot a { font-size: 13px; line-height: 1.8; color: rgba(255, 255, 255, .72); }
.foot h2 { font-size: 13px; text-transform: uppercase; letter-spacing: .12em; margin: 0 0 18px; color: #cce37b; }
.footlinks { display: grid; }
.footlinks a { padding: 5px 0; display: block; }
.legal-notice { border-top: 1px solid rgba(255, 255, 255, .14); margin-top: 38px; padding-top: 22px; font-size: 11px; line-height: 1.7; color: rgba(255, 255, 255, .55); }
.legal-notice a { text-decoration: none; }
.legal-notice a:hover strong { text-decoration: underline; }
.legal-notice strong { display: block; color: rgba(255, 255, 255, .75); margin-bottom: 6px; }
.legal-notice p { margin: 0; max-width: 900px; }
.copyright { margin-top: 18px; padding-top: 0; font-size: 11px; color: rgba(255, 255, 255, .6); display: flex; justify-content: space-between; align-items: center; }
.social-link { display: inline-block; margin-top: 14px; font-weight: 700; color: var(--lime); }
.agrofert-badge { display: flex; align-items: center; gap: 8px; }
.agrofert-badge img { height: 16px; width: auto; filter: brightness(0) invert(1); opacity: .85; }

/* ---- inner pages (Page/News/Press/Article) ---- */
.page-head { background: var(--cream); padding: 48px 0 40px; }
.page-hero { width: 100%; height: 420px; overflow: hidden; }
.page-hero picture { display: block; width: 100%; height: 100%; }
.page-hero img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.page-body.has-crossroad { padding-top: 130px; }
.tile.active { color: var(--green2); }
.tile.active .ico { color: var(--green); }
.page-head h1 { font-size: clamp(28px, 3.5vw, 42px); letter-spacing: -.03em; margin: 10px 0 0; }
.breadcrumb { font-size: 12px; color: var(--muted); }
.breadcrumb a { color: var(--green2); text-decoration: underline; }
.press-tag { display: inline-block; background: var(--green); color: #fff; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; padding: 4px 10px; border-radius: 2px; margin-bottom: 10px; }
.page-body { padding: 56px 0 92px; }
.article-meta { color: var(--green2); font-weight: 700; font-size: 13px; margin-bottom: 10px; }
.page-body article.press-article, .page-body article { line-height: 1.75; color: var(--ink); }
.page-body article p { color: var(--muted); }
.page-body article img { max-width: 100%; height: auto; }
.hours-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 20px; margin: 28px 0; }
.hours-card { background: var(--green); border-radius: 6px; padding: 24px; overflow-wrap: break-word; }
.page-body article .hours-card h3 { color: #fff; margin: 0 0 14px; font-size: 15px; text-transform: uppercase; letter-spacing: .04em; }
.page-body article .hours-card p { color: rgba(255, 255, 255, .95); font-size: 14px; margin: 0; }
.page-body article .hours-card p.hours-label { font-style: italic; color: rgba(255, 255, 255, .75); margin: 16px 0 4px; font-size: 13px; }
.page-body article .hours-card p.hours-label:first-of-type { margin-top: 0; }
.page-body article .hours-card a { color: #fff; }
.hours-table { width: 100%; border-collapse: collapse; font-size: 13px; margin-top: 2px; }
.hours-table tr:nth-child(odd) { background: rgba(255, 255, 255, .08); }
.hours-table td { padding: 6px 6px; color: #fff; }
.hours-table td:first-child { font-weight: 700; width: 32px; }
.table-scroll { overflow-x: auto; margin: 24px 0; }
.data-table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 640px; }
.data-table thead th { background: var(--green); color: #fff; text-align: left; padding: 10px 16px; font-size: 12px; text-transform: uppercase; letter-spacing: .03em; }
.data-table tbody tr:nth-child(odd) { background: var(--cream); }
.data-table td { padding: 10px 16px; vertical-align: top; }
.data-table td:first-child { font-weight: 700; }
.page-body article .data-table a { color: var(--green2); }
.press-contact { margin-top: 32px; padding: 18px 20px; background: var(--cream); border-left: 3px solid var(--lime); }
.press-contact strong { display: block; margin-bottom: 6px; }
.images { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; margin: 24px 0; }
.images img { border-radius: 4px; width: 100%; height: 140px; object-fit: cover; }
.images a.images-full { grid-column: 1 / -1; }
.images a.images-full img { height: auto; width: auto; max-width: 100%; max-height: 700px; object-fit: contain; display: block; margin: 0 auto; }

.lightbox { position: fixed; inset: 0; z-index: 2000; background: rgba(20, 26, 21, .92); display: flex; align-items: center; justify-content: center; padding: 56px; }
.lightbox[hidden] { display: none; }
.lightbox-img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 4px; box-shadow: var(--shadow); }
.lightbox-close, .lightbox-prev, .lightbox-next {
	position: absolute; background: rgba(255, 255, 255, .12); border: 0; color: #fff; cursor: pointer;
	display: flex; align-items: center; justify-content: center; border-radius: 50%; transition: .2s;
}
.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover { background: rgba(255, 255, 255, .28); }
.lightbox-prev[hidden], .lightbox-next[hidden] { display: none; }
.lightbox-close { top: 18px; right: 18px; width: 44px; height: 44px; font-size: 26px; }
.lightbox-prev, .lightbox-next { top: 50%; transform: translateY(-50%); width: 52px; height: 52px; font-size: 22px; }
.lightbox-prev { left: 16px; }
.lightbox-next { right: 16px; }
@media (max-width: 760px) {
	.lightbox { padding: 16px; }
	.lightbox-prev, .lightbox-next { width: 44px; height: 44px; }
	.lightbox-close { top: 8px; right: 8px; }
}
.files { margin: 20px 0; }
.files .item { padding: 8px 0; border-bottom: 1px solid var(--line); }
.small-btn { display: inline-block; margin-top: 20px; color: var(--green2); font-weight: 800; font-size: 13px; text-transform: uppercase; letter-spacing: .04em; }

.news-card-grid, .press-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; margin-top: 10px; }
.news-card, .press-card { border: 1px solid var(--line); border-radius: 4px; overflow: hidden; }
.news-card-img img { height: 200px; width: 100%; object-fit: cover; }
.news-card-body, .press-card-body { padding: 22px; }
.news-card-body h2, .press-card-body h2 { margin: 0 0 8px; font-size: 18px; }
.news-card-body p, .press-card-body p { color: var(--muted); font-size: 14px; line-height: 1.6; }
.pagination { display: flex; gap: 8px; margin-top: 40px; }
.pagination a, .pagination span { padding: 6px 12px; border: 1px solid var(--line); border-radius: 3px; font-size: 13px; font-weight: 700; }
.pagination span.current { background: var(--green); color: #fff; border-color: var(--green); }

.flashes { position: fixed; top: 16px; right: 16px; z-index: 999; display: grid; gap: 8px; }
.flash { background: #fff; border-left: 4px solid var(--green2); box-shadow: var(--shadow); padding: 12px 18px; font-size: 14px; border-radius: 3px; }
.flash-warning { border-color: #c9982a; }
.flash-error { border-color: #b03a2e; }

.cookie-consent {
	position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 998; max-width: 560px; margin: 0 auto;
	background: var(--green); color: #fff; padding: 20px 24px; border-radius: 6px; box-shadow: var(--shadow);
	display: flex; flex-wrap: wrap; align-items: center; gap: 16px; justify-content: space-between;
}
.cookie-consent[hidden] { display: none; }
.cookie-consent-text { flex: 1 1 260px; }
.cookie-consent-text strong { display: block; font-size: 15px; margin-bottom: 4px; }
.cookie-consent-text p { margin: 0; font-size: 13px; line-height: 1.6; }
.cookie-consent-actions { display: flex; gap: 10px; flex-shrink: 0; }
.cookie-consent .btn { margin-top: 0; padding: 10px 16px; }
.cookie-consent .btn-outline { background: transparent; border: 1px solid rgba(255, 255, 255, .5); color: #fff; }

@media (max-width: 1050px) {
	.nav { display: none; }
	.menu { display: block; }
	.header-extras { display: none; }
	.nav-details[open] .nav {
		display: flex; flex-direction: column; position: absolute; left: 0; right: 0; top: 100%; background: #fff;
		padding: 12px 24px 24px; box-shadow: var(--shadow); gap: 4px;
	}
	.nav-details[open] .nav a { padding: 12px 0; }
	.crossroad-grid { grid-template-columns: repeat(3, 1fr); }
	.tile:nth-child(3):after { display: none; }
	.hero-content { padding-bottom: 210px; }
	.crossroad { margin-top: -165px; }
	.news { padding-top: 95px; }
	.page-body.has-crossroad { padding-top: 95px; }
}
@media (max-width: 760px) {
	.wrap { width: min(100% - 30px, 1240px); }
	.topbar .wrap { justify-content: center; }
	.topbar a:first-child { display: none; }
	.head { height: 80px; }
	.logo-badge { width: 100px; height: 100px; margin-top: -14px; padding: 20px; }
	.logo img { height: 60px; }
	.hero { min-height: 500px; }
	.hero-content { padding: 55px 0 195px; }
	.hero p { font-size: 16px; }
	.crossroad { margin-top: -155px; }
	.crossroad-grid { grid-template-columns: repeat(2, 1fr); padding: 8px; }
	.tile { min-height: 132px; gap: 10px; font-size: 10px; }
	.tile:after { display: none !important; }
	.ico { width: 44px; height: 44px; }
	.news-grid, .about-grid, .foot, .news-card-grid, .press-grid { grid-template-columns: 1fr; gap: 52px; }
	.news { padding-bottom: 72px; }
	.about { padding-bottom: 72px; }
	.photo img { height: 300px; }
	.stamp { right: 12px; bottom: -20px; }
	.facts { grid-template-columns: 1fr; }
	.copyright { display: block; line-height: 1.8; }
	.foot { gap: 35px; }
}
