/* Hladovanie theme — mobile-first, desktop matches the 1300px design canvas 1:1. */

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

body {
	margin: 0;
	font-family: var(--font-main);
	font-size: var(--fs-body);
	line-height: var(--lh-body);
	color: var(--c-text);
	background: var(--c-white);
	-webkit-font-smoothing: antialiased;
}

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

/* hlad-form-controls: native form controls don't inherit typography and fall
   back to the tiny UA default (~13px). Make them match surrounding text so
   every button/input/select across the site (login, registration, search,
   comments) is sized correctly. Plugin-classed controls (.tutor-btn etc.)
   keep their own size via higher specificity. */
button, input, optgroup, select, textarea {
	font-family: inherit;
	font-size: 100%;
	line-height: var(--lh-body);
}

h1, h2, h3, h4, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }

.container {
	max-width: calc(var(--container) + 2 * var(--gutter));
	margin: 0 auto;
	padding-inline: var(--gutter);
}

.section { padding-block: 48px; }

.screen-reader-text {
	position: absolute;
	width: 1px; height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
}

.icon { flex-shrink: 0; }

/* ---------- Type helpers ---------- */
.h2 {
	font-size: var(--fs-h2);
	font-weight: 700;
	line-height: 0.7;                /* PDF: h2 line step 37 at 54px */
}
.h2--green { color: var(--c-green-dark); }
.h2--purple { color: var(--c-purple); }

.eyebrow {
	font-size: var(--fs-nav);
	font-weight: 700;
	color: var(--c-green);
	text-transform: uppercase;
	line-height: 1;
	margin-bottom: 8px;
}

/* ---------- Buttons ---------- */
.btn {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 9px 26px;               /* 28px text + 18 + 3 border = 49px, per PDF */
	border-radius: var(--radius-btn);
	border: 1.5px solid transparent;
	font-size: var(--fs-lead);
	font-weight: 400;
	line-height: 1;
	white-space: nowrap;
	transition: background-color .15s ease, color .15s ease, border-color .15s ease, filter .15s ease;
}
.btn--sm { font-size: var(--fs-nav); padding: 6px 20px; }   /* 39px, per PDF header CTAs */
/* Optically centre the header CTAs — Dongle sits high in the line box, leaving
   extra space below the label; trim the bottom padding (nav bar only). */
.nav__ctas .btn--sm { padding-bottom: 2px; }

.btn--green { background: var(--grad-green); color: var(--c-white); }
.btn--green:hover { filter: brightness(1.12); }

.btn--grad-purple { background: var(--grad-purple); color: var(--c-white); }
.btn--grad-purple:hover { filter: brightness(1.15); }

.btn--purple { background: var(--c-purple); color: var(--c-white); }
.btn--purple:hover { background: var(--c-purple-dark); }

.btn--outline-green { border-color: var(--c-green); color: var(--c-green); background: var(--c-white); }
.btn--outline-green:hover { background: var(--c-green); color: var(--c-white); }

.btn--outline-purple { border-color: var(--c-purple); color: var(--c-purple); background: var(--c-white); }
.btn--outline-purple:hover { background: var(--c-purple); color: var(--c-white); }

.btn--outline-white { border-color: var(--c-white); color: var(--c-white); }
.btn--outline-white:hover { background: var(--c-white); color: var(--c-green); }

/* ---------- Header ---------- */
.site-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: var(--c-white);
	box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
}

/* Keep sticky header below the WP admin bar when logged in (codex review finding) */
body.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) {
	/* On mobile the WP admin bar is position:absolute and scrolls away, so the
	   sticky header must pin to the very top (not leave a 46px gap on scroll). */
	body.admin-bar .site-header { top: 0; }
}
.site-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	min-height: var(--header-h);
}
.site-header__logo img { width: 212px; }

.nav { display: flex; align-items: center; gap: 28px; }
@media (min-width: 961px) {
	/* Logo left · menu centered between logo and CTAs · CTAs pinned right.
	   The list's auto side-margins absorb the free space equally, so the menu
	   centers in the gap; the right auto-margin pushes the CTA group to the far
	   right. gap:0 removes the base flex gap so the centering is symmetric. */
	.nav { flex: 1; display: flex; gap: 0; }
	.nav__list { margin-inline: auto; }
}
.nav__list {
	display: flex;
	align-items: center;
	gap: 22px;
	font-size: var(--fs-nav);
	color: var(--c-black);
}
.nav__list a { white-space: nowrap; }
.nav__list a:hover { color: var(--c-green); }
.nav__ctas { display: flex; align-items: center; gap: 12px; }

.nav-toggle {
	display: none;
	flex-direction: column;
	gap: 5px;
	padding: 10px;
	background: none;
	border: 0;
	cursor: pointer;
}
.nav-toggle__bar {
	width: 26px; height: 3px;
	border-radius: 2px;
	background: var(--c-green-dark);
	transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
	position: relative;
	/* background moved to the Spectra container attribute (panel-editable) */
	overflow: hidden;
}
.hero__photo {
	position: absolute;
	inset: 0 0 0 auto;
	width: 63.4%;             /* 824/1300 from PDF */
	background: url("../img/hero.png") center right / cover no-repeat;
}
.hero__photo::before {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg, var(--c-cream) 0%, rgba(243, 248, 228, 0) 45%);
}
.hero__inner {
	position: relative;
	display: flex;
	align-items: flex-start;
	min-height: 500px;         /* PDF band height */
	padding-block: 56px 40px;  /* PDF: title glyphs at band+45 (Dongle lh-crop offset ~11) */
}
.hero__content { max-width: 520px; }
.hero__title {
	font-size: var(--fs-h1-sub);
	font-weight: 400;
	color: var(--c-black);
	line-height: 0.76;               /* PDF line steps: 74/96=0.77, 56/74=0.76 */
}
.hero__title strong {
	font-size: var(--fs-h1);
	font-weight: 700;
	color: var(--c-green-dark);
}
.hero__lead {
	font-size: var(--fs-lead);
	line-height: 1.07;               /* PDF: 30px step at 28px text */
	margin-block: 32px 45px;         /* tuned so CTAs land at PDF y462 */
	max-width: 570px;                /* PDF: lead wraps to 2 lines */
}
.hero__ctas { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Why / feature cards ---------- */
.why__grid {
	display: grid;
	grid-template-columns: minmax(0, 350px) minmax(0, 1fr);   /* PDF: intro 100..450, cards 490..1200 */
	gap: 40px;
	align-items: start;
}
.why__intro > p:not(.eyebrow) { margin-block: 14px 34px; }
.why__intro .h2 { color: var(--c-green-dark); }

.why__cards {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 30px;                       /* PDF: cards 340 wide, col gap 30 */
}
.feature-card {
	display: flex;
	gap: 18px;
	align-items: center;
	/* background moved to the Spectra container attribute (panel-editable) */
	border: 1px solid rgba(0, 0, 0, 0.06);
	border-radius: var(--radius-card);
	box-shadow: var(--shadow-card);
	padding: 20px 22px 20px 28px;
	min-height: 160px;               /* PDF card height */
}
.feature-card__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 70px; height: 70px;       /* PDF circle d=70 */
	border-radius: 50%;
	background: var(--c-pink-tint);
	color: var(--c-purple);
}
.feature-card__title {
	font-size: var(--fs-card-title);
	font-weight: 700;
	color: var(--c-purple);
	line-height: 1;
	margin-bottom: 4px;
}
.feature-card p { line-height: 1.1; }   /* PDF: card desc step 22 at 20px (fits 160px card) */

/* ---------- Suitability ---------- */
/* .suitability padding-block + .suitability__box background moved to Spectra container attributes (panel-editable) */
.suitability__box {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 70px;                       /* PDF: col1 text 172.., col2 badge at 701 */
	border-radius: var(--radius-box);
	padding: 28px 31px 22px;         /* PDF: badge 31 from box edge, box height 260 */
}
.suitability .checklist { margin-left: 31px; }   /* PDF: item markers at x162, text x192 */
.suitability__heading {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: var(--fs-h3);
	font-weight: 700;
	line-height: 1;
	margin-bottom: 24px;
}
.suitability__heading--yes { color: var(--c-green-dark); }
.suitability__heading--no { color: var(--c-purple); }

.suitability__badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 32px; height: 32px;       /* PDF: d31 filled gradient circle, white glyph */
	border-radius: 50%;
	color: var(--c-white);
}
.suitability__badge--green { background: var(--grad-green); }
.suitability__badge--purple { background: var(--grad-purple); }

/* ---------- Checklists ---------- */
.checklist li {
	position: relative;
	padding-left: 30px;
	margin-bottom: 6px;              /* 24px line + 6 = PDF item step 30 */
}
.checklist li::before {
	content: "";
	position: absolute;
	left: 0; top: 1px;
	width: 20px; height: 20px;
	border-radius: 50%;
	background-color: currentColor;
	-webkit-mask: var(--check-mask) center / contain no-repeat;
	mask: var(--check-mask) center / contain no-repeat;
}
.checklist--green li::before {
	color: var(--c-green);
	--check-mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="9"/><path d="m8 12.2 2.7 2.7L16 9.6"/></svg>');
}
.checklist--purple li::before {
	color: var(--c-purple);
	--check-mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="9"/><path d="m9 9 6 6M15 9l-6 6"/></svg>');
}
.checklist--purple-check li::before {
	color: var(--c-purple);
	--check-mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="9"/><path d="m8 12.2 2.7 2.7L16 9.6"/></svg>');
}

/* ---------- Benefits band ---------- */
.benefits {
	/* background + padding-block moved to the Spectra container attributes (panel-editable) */
	color: var(--c-white);
}
.benefits__grid {
	display: grid;
	grid-template-columns: minmax(0, 330px) minmax(0, 1fr);   /* PDF: intro 100..430, items from 474 */
	gap: 44px;
	align-items: start;
}
.benefits__intro .h2 { color: var(--c-white); }
.benefits__intro p {
	font-size: 24px;                 /* PDF: intro copy 24px, line step 20 */
	line-height: 0.84;
	margin-block: 18px 40px;
}

.benefits__items {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 26px 28px;                  /* PDF: row step 142 = content 116 + 26 */
}
@media (min-width: 1201px) {
	/* PDF: 3rd column text bleeds past the container right edge (to x1248) — mimic it */
	.benefits__items { margin-right: -60px; }
}
.benefit__icon {
	display: inline-flex;
	color: var(--c-green-light);   /* light green line icons, per PDF */
	margin-bottom: 4px;            /* PDF: title box starts 2px under the icon */
}
.benefit__title {
	font-size: var(--fs-benefit-title);
	font-weight: 700;
	line-height: 0.85;
	margin-bottom: 0;              /* PDF: desc box right under title box (Dongle overlap) */
}
.benefit p {
	font-size: 24px;               /* PDF: benefit desc is 24px, line step 20 */
	line-height: 0.84;
	max-width: 235px;              /* PDF: desc column ~230, wraps like the design */
}

/* ---------- Programs ---------- */
/* .programs padding-block moved to the Spectra container attribute (panel-editable) */
.programs .h2 { margin-bottom: 22px; }    /* PDF: h2 at 1793, body text at 1861 */
.programs__grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 400px);   /* PDF topics card 400 wide at x807 */
	gap: 28px;
	align-items: start;
}
.program-main {
	display: flex;
	gap: 44px;                       /* PDF: photo ends x381, body starts x426 */
	align-items: flex-end;           /* PDF: photo bottom-aligns with the body/CTA */
}
.program-main__photo {
	width: 282px;
	border-radius: var(--radius-box);
	flex-shrink: 0;
}
.program-main__body > p { margin-bottom: 16px; }
.program-main__body .checklist { margin-bottom: 22px; }

.program-topics {
	/* background moved to the Spectra container attribute (panel-editable) */
	border-radius: var(--radius-box);
	padding: 18px 38px 30px;         /* PDF: title 18 from top, CTA inset 38 from edge */
}
.program-topics__title {
	font-size: var(--fs-card-title-lg);
	font-weight: 700;
	color: var(--c-purple);
	line-height: 1;
	margin-bottom: 22px;
}
.program-topics .checklist { margin-bottom: 48px; }   /* PDF: 55px gap between list and CTA */
.program-topics .btn { font-size: var(--fs-nav); }

/* ---------- Footer ---------- */
.site-footer {
	background: var(--c-purple);
	color: var(--c-white);
	padding-top: 40px;               /* PDF band 2220..2440, logo at +40 */
}
.site-footer__grid {
	display: grid;
	/* PDF column offsets within container: 0 / 318 / 529 / 788 */
	grid-template-columns: 318px 211px 259px minmax(0, 1fr);
	gap: 0;
}
.site-footer__brand img { width: 210px; }   /* PDF footer logo 209.5 x 58.8 */
.site-footer__tagline {
	font-size: var(--fs-small);
	line-height: 1.18;               /* PDF: 20px step at 17px text */
	margin-block: 10px 12px;
	margin-left: 77px;               /* PDF: tagline aligns with the logo text block (x176) */
}
/* PDF: plain small icons (no rings), aligned with the tagline text block */
.site-footer__social { display: flex; gap: 13px; margin-left: 77px; }
.site-footer__social a { display: inline-flex; align-items: center; }
.site-footer__social a:hover { opacity: 0.8; }

.site-footer__col h4 {
	font-size: var(--fs-nav);
	font-weight: 700;
	margin-bottom: 10px;
}
.site-footer__col li { margin-bottom: 0; }   /* PDF link step 24 = 20px text at lh 1.2 */
.site-footer__col a:hover { text-decoration: underline; }

.site-footer__bottom {
	/* PDF: divider (y2372) sits beside the tail of col 2, under cols 3-4 only → pull up */
	margin-top: -40px;
	margin-left: 48%;             /* PDF: divider+copyright start at x629 (offset 529/1100) */
	max-width: 420px;             /* PDF divider width 412 */
	border-top: 1px solid rgba(255, 255, 255, 0.3);
	padding-block: 14px 22px;
}

@media (max-width: 960px) {
	/* stacked footer: drop the desktop -40px pull-up so copyright no longer
	   overlaps the column links */
	.site-footer__bottom { margin-top: 0; margin-left: 0; max-width: none; text-align: center; }
}

/* =========================================================
   Responsive — tablet & mobile
   ========================================================= */

@media (max-width: 1200px) {
	.benefits__items { gap: 24px 20px; }
	.programs__grid { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 960px) {
	.why__grid { grid-template-columns: 1fr; }
	.benefits__grid { grid-template-columns: 1fr; gap: 36px; }
	.suitability__box { grid-template-columns: 1fr; gap: 28px; padding: 28px; }
	.site-footer__grid { grid-template-columns: 1fr 1fr; gap: 32px; }
	.site-footer__tagline { margin-left: 0; }
	.site-footer__social { margin-left: 0; }

	/* Mobile nav */
	.nav-toggle { display: flex; }
	.nav {
		position: absolute;
		top: 100%;
		left: 0; right: 0;
		flex-direction: column;
		align-items: stretch;
		gap: 0;
		background: var(--c-white);
		box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
		padding: 12px var(--gutter) 20px;
		display: none;
	}
	.nav.is-open { display: flex; }
	.nav__list {
		flex-direction: column;
		align-items: stretch;
		gap: 0;
	}
	.nav__list a {
		display: block;
		padding: 10px 4px;
		border-bottom: 1px solid rgba(0, 0, 0, 0.06);
	}
	.nav__ctas {
		margin-top: 16px;
		flex-direction: column;
		align-items: stretch;
	}
	.nav__ctas .btn { justify-content: center; }
}

@media (max-width: 700px) {
	:root {
		--fs-h1: 64px;
		--fs-h1-sub: 50px;
		--fs-h2: 44px;
		--fs-h3: 32px;
	}
	.hero__photo {
		position: static;
		width: 100%;
		height: 260px;
		background-position: center 20%;
	}
	.hero__photo::before { display: none; }
	.hero__inner { min-height: 0; padding-block: 28px 40px; }
	.hero__content { max-width: none; }

	.why__cards { grid-template-columns: 1fr; }
	.benefits__items { grid-template-columns: 1fr 1fr; }

	.program-main { flex-direction: column; }
	.program-main__photo { width: 100%; max-width: 340px; }

	.site-footer__grid { grid-template-columns: 1fr; gap: 28px; }
}

@media (max-width: 460px) {
	.benefits__items { grid-template-columns: 1fr; }
	.hero__ctas .btn, .why__intro .btn { width: 100%; justify-content: center; }
	.program-topics .btn { white-space: normal; text-align: center; justify-content: center; }
}
