/**
 * ==========================================================
 * SONATA GREEN V6.0
 * Žalesnė redakcinė Neo-70s dizaino sistema
 * ==========================================================
 *
 * Aktyvus failas svetainėje:
 * wp-content/themes/sonata-green-child/assets/css/sonata-green.css
 *
 * Svarbu:
 * - .sg-v5-* klasių prefiksas paliekamas dėl suderinamumo.
 * - #263128 valdo struktūrą, H1/H2, Primary CTA ir hero arką.
 * - #4E6B41 yra matoma prekės ženklo žalia.
 * - #A9CDC2 pakeičia ankstesnę šaltą žydrą.
 */


/* ==========================================================
   01. WORDPRESS IR ASTRA SUDERINAMUMAS
   ========================================================== */

.entry-content > .wp-block-html {
	margin-top: 0 !important;
	margin-bottom: 0 !important;
}

.entry-content > .wp-block-html:last-child {
	margin-bottom: 0 !important;
}


/* ==========================================================
   02. V6 KINTAMIEJI
   ========================================================== */

.sg-v5-page {
	/* Struktūrinės žalios */
	--sg-v5-forest: #263128;
	--sg-v5-brand-green: #4e6b41;
	--sg-v5-forest-dark: #19231c;

	/* Tekstai */
	--sg-v5-ink: #292824;
	--sg-v5-muted: #5e6a63;

	/* Fonai */
	--sg-v5-cream: #fffaed;
	--sg-v5-paper: #fffdf8;
	--sg-v5-sky: #a9cdc2;

	/* Akcentai */
	--sg-v5-coral: #fa9584;
	--sg-v5-orange: #f9ae54;
	--sg-v5-plum: #6b2e5b;
	--sg-v5-error: #b43b3b;

	/* Linijos */
	--sg-v5-line: #ded4c3;

	/* Šriftai */
	--sg-v5-display: "Fraunces", Georgia, serif;
	--sg-v5-body: "Manrope", Arial, sans-serif;

	/* Plotis */
	--sg-v5-container: 1320px;
	--sg-v5-gutter: clamp(24px, 3vw, 48px);

	/* Tarpai */
	--sg-v5-space-1: 4px;
	--sg-v5-space-2: 8px;
	--sg-v5-space-3: 12px;
	--sg-v5-space-4: 16px;
	--sg-v5-space-5: 24px;
	--sg-v5-space-6: 32px;
	--sg-v5-space-7: 48px;
	--sg-v5-space-8: 64px;
	--sg-v5-space-9: 80px;
	--sg-v5-space-10: 96px;
	--sg-v5-space-11: 128px;

	/* Kampai */
	--sg-v5-radius-sm: 12px;
	--sg-v5-radius-md: 20px;
	--sg-v5-radius-lg: 28px;
	--sg-v5-radius-pill: 999px;

	/* Šešėliai */
	--sg-v5-shadow-coral: 0 7px 0 var(--sg-v5-coral);
	--sg-v5-shadow-brand: 0 7px 0 var(--sg-v5-brand-green);
	--sg-v5-shadow-dark: 0 7px 0 var(--sg-v5-forest);
	--sg-v5-shadow-soft: 0 18px 40px rgb(38 49 40 / 14%);

	position: relative;
	width: 100%;
	max-width: 100%;
	margin: 0;
	padding: 0;
	overflow: hidden;

	color: var(--sg-v5-ink);
	background: var(--sg-v5-cream);

	font-family: var(--sg-v5-body);
	font-size: 17px;
	line-height: 1.65;

	-webkit-font-smoothing: antialiased;
}


/* ==========================================================
   03. BAZINIAI NUSTATYMAI
   ========================================================== */

.sg-v5-page *,
.sg-v5-page *::before,
.sg-v5-page *::after {
	box-sizing: border-box;
}

.sg-v5-page h1,
.sg-v5-page h2,
.sg-v5-page h3,
.sg-v5-page h4,
.sg-v5-page h5,
.sg-v5-page h6,
.sg-v5-page p,
.sg-v5-page ul,
.sg-v5-page ol,
.sg-v5-page figure,
.sg-v5-page blockquote {
	margin: 0;
}

.sg-v5-page h1,
.sg-v5-page h2 {
	color: var(--sg-v5-forest);
	font-family: var(--sg-v5-display);
	font-weight: 700;
}

.sg-v5-page h3,
.sg-v5-page h4,
.sg-v5-page h5,
.sg-v5-page h6 {
	color: var(--sg-v5-forest);
	font-family: var(--sg-v5-body);
	font-weight: 700;
}

.sg-v5-page h1 {
	max-width: 12ch;
	font-size: clamp(52px, 5vw, 82px);
	line-height: 0.98;
	letter-spacing: -0.045em;
}

.sg-v5-page h2 {
	max-width: 16ch;
	font-size: clamp(42px, 4vw, 64px);
	line-height: 1.05;
	letter-spacing: -0.035em;
}

.sg-v5-page h3 {
	font-size: clamp(26px, 2vw, 32px);
	line-height: 1.2;
}

.sg-v5-page h4 {
	font-size: 22px;
	line-height: 1.3;
}

.sg-v5-page p,
.sg-v5-page li {
	color: var(--sg-v5-ink);
}

.sg-v5-page a {
	color: var(--sg-v5-forest);
}

.sg-v5-page img {
	display: block;
	max-width: 100%;
	height: auto;
}


/* ==========================================================
   04. KONTEINERIAI IR SEKCIJOS
   ========================================================== */

.sg-v5-container {
	position: relative;
	z-index: 2;
	width: min(var(--sg-v5-container), calc(100% - (2 * var(--sg-v5-gutter))));
	margin-inline: auto;
}

.sg-v5-section {
	position: relative;
	width: 100%;
	padding: clamp(72px, 8vw, 120px) 0;
	overflow: hidden;
}

.sg-v5-section--cream {
	background: var(--sg-v5-cream);
}

.sg-v5-section--paper {
	background: var(--sg-v5-paper);
}

.sg-v5-section--sky {
	background: var(--sg-v5-sky);
}

.sg-v5-section--brand {
	color: var(--sg-v5-cream);
	background: var(--sg-v5-brand-green);
}

.sg-v5-section--forest {
	color: var(--sg-v5-cream);
	background: var(--sg-v5-forest);
}

.sg-v5-section--coral {
	background: var(--sg-v5-coral);
}

.sg-v5-section--orange {
	background: var(--sg-v5-orange);
}

.sg-v5-section--plum {
	color: var(--sg-v5-cream);
	background: var(--sg-v5-plum);
}

.sg-v5-section--brand h1,
.sg-v5-section--brand h2,
.sg-v5-section--brand h3,
.sg-v5-section--brand h4,
.sg-v5-section--brand p,
.sg-v5-section--forest h1,
.sg-v5-section--forest h2,
.sg-v5-section--forest h3,
.sg-v5-section--forest h4,
.sg-v5-section--forest p,
.sg-v5-section--plum h1,
.sg-v5-section--plum h2,
.sg-v5-section--plum h3,
.sg-v5-section--plum h4,
.sg-v5-section--plum p {
	color: var(--sg-v5-cream);
}


/* ==========================================================
   05. TEKSTO ELEMENTAI
   ========================================================== */

.sg-v5-copy {
	width: 100%;
	max-width: 650px;
}

.sg-v5-lead {
	max-width: 58ch;
	margin-top: 26px;
	color: var(--sg-v5-muted);
	font-size: clamp(17px, 1.4vw, 20px);
	line-height: 1.65;
}

.sg-v5-section--brand .sg-v5-lead,
.sg-v5-section--forest .sg-v5-lead,
.sg-v5-section--plum .sg-v5-lead {
	color: rgb(255 250 237 / 82%);
}

.sg-v5-eyebrow {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 34px;
	padding: 0 15px;
	border: 1px solid rgb(38 49 40 / 30%);
	border-radius: var(--sg-v5-radius-pill);
	color: var(--sg-v5-forest);
	background: var(--sg-v5-orange);
	font-size: 12px;
	line-height: 1;
	font-weight: 800;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.sg-v5-heading-accent {
	position: relative;
	z-index: 1;
	display: inline;
}

.sg-v5-heading-accent::after {
	position: absolute;
	z-index: -1;
	right: 0;
	bottom: 3px;
	left: 0;
	height: 10px;
	border-radius: var(--sg-v5-radius-pill);
	background: var(--sg-v5-orange);
	content: "";
	transform: rotate(-1deg);
}


/* ==========================================================
   06. REDAKCINIAI IŠDĖSTYMAI
   ========================================================== */

.sg-v5-split {
	display: grid;
	grid-template-columns: minmax(0, 0.95fr) minmax(420px, 1.05fr);
	align-items: center;
	gap: clamp(48px, 6vw, 88px);
	width: 100%;
}

.sg-v5-split--wide-visual {
	grid-template-columns: minmax(0, 0.95fr) minmax(420px, 1.05fr);
}

.sg-v5-split--wide-copy {
	grid-template-columns: minmax(0, 1.15fr) minmax(360px, 0.85fr);
}

.sg-v5-split--top {
	align-items: start;
}

.sg-v5-grid-2 {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: clamp(20px, 3vw, 32px);
}

.sg-v5-grid-3 {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: clamp(20px, 3vw, 32px);
}

.sg-v5-grid-stagger > :nth-child(even) {
	transform: translateY(20px);
}

.sg-v5-stack {
	display: grid;
	gap: 16px;
}


/* ==========================================================
   07. MYGTUKAI
   ========================================================== */

.sg-v5-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 18px;
	margin-top: 32px;
}

.sg-v5-page a.sg-v5-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 14px;
	min-height: 58px;
	padding: 6px 8px 6px 26px;
	border: 2px solid var(--sg-v5-forest);
	border-radius: var(--sg-v5-radius-pill);
	font-family: var(--sg-v5-body);
	font-size: 16px;
	line-height: 1;
	font-weight: 800;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
	transition:
		transform 160ms ease,
		box-shadow 160ms ease,
		background-color 160ms ease,
		color 160ms ease;
}

.sg-v5-page a.sg-v5-button--primary,
.sg-v5-page a.sg-v5-button--primary:visited {
	color: var(--sg-v5-cream);
	background: var(--sg-v5-forest);
	box-shadow: var(--sg-v5-shadow-coral);
	transform: translateY(-3px);
}

.sg-v5-page a.sg-v5-button--primary:hover {
	color: var(--sg-v5-cream);
	background: var(--sg-v5-forest-dark);
	box-shadow: 0 9px 0 var(--sg-v5-coral);
	transform: translateY(-5px);
}

.sg-v5-page a.sg-v5-button--primary:active {
	color: var(--sg-v5-cream);
	box-shadow: 0 2px 0 var(--sg-v5-coral);
	transform: translateY(2px);
}

.sg-v5-page a.sg-v5-button--secondary,
.sg-v5-page a.sg-v5-button--secondary:visited,
.sg-v5-page a.sg-v5-button--ghost,
.sg-v5-page a.sg-v5-button--ghost:visited {
	padding-right: 26px;
	padding-left: 26px;
	color: var(--sg-v5-forest);
	background: transparent;
	box-shadow: none;
}

.sg-v5-page a.sg-v5-button--secondary:hover,
.sg-v5-page a.sg-v5-button--ghost:hover {
	color: var(--sg-v5-forest);
	background: var(--sg-v5-paper);
	transform: translateY(-2px);
}

.sg-v5-page a.sg-v5-button--brand,
.sg-v5-page a.sg-v5-button--brand:visited {
	color: var(--sg-v5-cream);
	background: var(--sg-v5-brand-green);
	box-shadow: var(--sg-v5-shadow-dark);
}

.sg-v5-page a.sg-v5-button--brand:hover {
	color: var(--sg-v5-cream);
	background: var(--sg-v5-forest);
	transform: translateY(-3px);
}

.sg-v5-button__icon {
	display: grid;
	flex: 0 0 auto;
	place-items: center;
	width: 42px;
	height: 42px;
	border-radius: 50%;
	color: var(--sg-v5-forest);
	background: var(--sg-v5-cream);
	font-size: 21px;
	line-height: 1;
	font-weight: 800;
}

.sg-v5-button:focus-visible,
.sg-v5-page a:focus-visible,
.sg-v5-page button:focus-visible,
.sg-v5-page summary:focus-visible,
.sg-v5-page input:focus-visible,
.sg-v5-page select:focus-visible,
.sg-v5-page textarea:focus-visible {
	outline: 4px solid var(--sg-v5-orange);
	outline-offset: 4px;
}


/* ==========================================================
   08. KORTELĖS
   ========================================================== */

.sg-v5-card {
	position: relative;
	padding: clamp(24px, 3vw, 36px);
	overflow: hidden;
	border: 2px solid var(--sg-v5-forest);
	border-radius: var(--sg-v5-radius-lg);
	color: var(--sg-v5-ink);
	background: var(--sg-v5-paper);
	box-shadow: var(--sg-v5-shadow-soft);
	transition: transform 180ms ease, box-shadow 180ms ease;
}

.sg-v5-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 24px 50px rgb(38 49 40 / 18%);
}

.sg-v5-card--cream {
	background: var(--sg-v5-cream);
}

.sg-v5-card--sky {
	background: var(--sg-v5-sky);
}

.sg-v5-card--brand {
	color: var(--sg-v5-cream);
	background: var(--sg-v5-brand-green);
	box-shadow: var(--sg-v5-shadow-coral);
}

.sg-v5-card--forest {
	color: var(--sg-v5-cream);
	background: var(--sg-v5-forest);
	box-shadow: var(--sg-v5-shadow-coral);
}

.sg-v5-card--coral {
	background: var(--sg-v5-coral);
	box-shadow: var(--sg-v5-shadow-dark);
}

.sg-v5-card--orange {
	background: var(--sg-v5-orange);
	box-shadow: var(--sg-v5-shadow-dark);
}

.sg-v5-card--plum {
	color: var(--sg-v5-cream);
	background: var(--sg-v5-plum);
	box-shadow: var(--sg-v5-shadow-coral);
}

.sg-v5-card--brand h3,
.sg-v5-card--brand h4,
.sg-v5-card--brand p,
.sg-v5-card--forest h3,
.sg-v5-card--forest h4,
.sg-v5-card--forest p,
.sg-v5-card--plum h3,
.sg-v5-card--plum h4,
.sg-v5-card--plum p {
	color: var(--sg-v5-cream);
}

.sg-v5-card p {
	margin-top: 12px;
	color: var(--sg-v5-muted);
}

.sg-v5-card__number {
	display: grid;
	place-items: center;
	width: 48px;
	height: 48px;
	border: 2px solid var(--sg-v5-forest);
	border-radius: 50%;
	color: var(--sg-v5-forest);
	background: var(--sg-v5-orange);
	box-shadow: 3px 3px 0 var(--sg-v5-forest);
	font-family: var(--sg-v5-display);
	font-size: 17px;
	line-height: 1;
	font-weight: 700;
}

.sg-v5-mini-card {
	display: grid;
	grid-template-columns: 48px minmax(0, 1fr);
	align-items: center;
	gap: 16px;
	padding: 17px 20px;
	border: 1px solid rgb(38 49 40 / 20%);
	border-radius: var(--sg-v5-radius-md);
	background: var(--sg-v5-paper);
	box-shadow: 0 5px 0 rgb(38 49 40 / 14%);
}

.sg-v5-mini-card:nth-child(even) {
	margin-left: 24px;
	background: var(--sg-v5-sky);
}

.sg-v5-mini-card strong {
	display: block;
	color: var(--sg-v5-forest);
	font-size: 16px;
	line-height: 1.3;
	font-weight: 800;
}

.sg-v5-mini-card p {
	margin-top: 4px;
	color: var(--sg-v5-muted);
	font-size: 13px;
	line-height: 1.5;
}


/* ==========================================================
   09. HERO VIZUALINĖ KOMPOZICIJA
   ========================================================== */

.sg-v5-visual {
	position: relative;
	justify-self: end;
	width: 100%;
	max-width: 560px;
	min-height: 610px;
	isolation: isolate;
}

.sg-v5-arch {
	position: absolute;
	z-index: 1;
	top: 0;
	left: 50%;
	width: min(88%, 460px);
	height: 550px;
	border: 2px solid var(--sg-v5-forest);
	border-radius: 230px 230px 30px 30px;
	background: var(--sg-v5-forest);
	box-shadow: 14px 14px 0 var(--sg-v5-coral);
	transform: translateX(-50%) rotate(-2deg);
}

.sg-v5-photo {
	position: relative;
	z-index: 3;
	width: min(76%, 400px);
	aspect-ratio: 4 / 5;
	margin: 24px auto 0;
	padding: 12px;
	border: 2px solid var(--sg-v5-forest);
	border-radius: var(--sg-v5-radius-lg);
	background: var(--sg-v5-paper);
	box-shadow: 9px 9px 0 var(--sg-v5-forest);
	transform: rotate(2deg);
}

.sg-v5-photo img,
.sg-v5-photo__placeholder {
	width: 100%;
	height: 100%;
	border-radius: 18px;
}

.sg-v5-photo img {
	object-fit: cover;
	object-position: center;
}

.sg-v5-photo__placeholder {
	display: grid;
	place-items: center;
	padding: 30px;
	color: var(--sg-v5-forest);
	background: linear-gradient(145deg, var(--sg-v5-cream), var(--sg-v5-orange));
	font-family: var(--sg-v5-display);
	font-size: 30px;
	line-height: 1.2;
	font-weight: 700;
	text-align: center;
}

.sg-v5-polaroid {
	position: absolute;
	z-index: 5;
	right: 0;
	bottom: 12px;
	width: min(40%, 205px);
	padding: 9px 9px 30px;
	border: 2px solid var(--sg-v5-forest);
	border-radius: 16px;
	background: var(--sg-v5-paper);
	box-shadow: var(--sg-v5-shadow-soft);
	transform: rotate(-4deg);
}

.sg-v5-polaroid img,
.sg-v5-polaroid__placeholder {
	width: 100%;
	aspect-ratio: 4 / 5;
	border-radius: 10px;
	object-fit: cover;
}

.sg-v5-polaroid__placeholder {
	background: linear-gradient(145deg, var(--sg-v5-sky), var(--sg-v5-coral));
}

.sg-v5-label-card {
	position: absolute;
	z-index: 6;
	left: 0;
	bottom: 28px;
	max-width: 220px;
	padding: 14px 18px;
	border: 2px solid var(--sg-v5-forest);
	border-radius: 16px;
	color: var(--sg-v5-forest);
	background: var(--sg-v5-orange);
	box-shadow: 5px 5px 0 var(--sg-v5-forest);
	font-size: 14px;
	line-height: 1.4;
	font-weight: 800;
	transform: rotate(-2deg);
}


/* ==========================================================
   10. DEKORACIJOS
   ========================================================== */

.sg-v5-decoration {
	position: absolute;
	z-index: 0;
	pointer-events: none;
	user-select: none;
}

.sg-v5-ring {
	width: 210px;
	height: 210px;
	border: 24px solid currentColor;
	border-radius: 50%;
	opacity: 0.18;
}

.sg-v5-ring--top-right {
	top: 45px;
	right: -105px;
	color: var(--sg-v5-orange);
}

.sg-v5-ring--bottom-left {
	bottom: -90px;
	left: -90px;
	color: var(--sg-v5-brand-green);
}

.sg-v5-color-stripe {
	display: flex;
	width: 210px;
	height: 10px;
	margin-top: 34px;
	overflow: hidden;
	border-radius: var(--sg-v5-radius-pill);
}

.sg-v5-color-stripe span {
	flex: 1;
}

.sg-v5-color-stripe span:nth-child(1) {
	background: var(--sg-v5-sky);
}

.sg-v5-color-stripe span:nth-child(2) {
	background: var(--sg-v5-brand-green);
}

.sg-v5-color-stripe span:nth-child(3) {
	background: var(--sg-v5-forest);
}

.sg-v5-color-stripe span:nth-child(4) {
	background: var(--sg-v5-coral);
}

.sg-v5-color-stripe span:nth-child(5) {
	background: var(--sg-v5-orange);
}


/* ==========================================================
   11. FORMOS IR DUK BAZĖ
   ========================================================== */

.sg-v5-field {
	display: grid;
	gap: 8px;
}

.sg-v5-field label {
	color: var(--sg-v5-forest);
	font-size: 15px;
	font-weight: 700;
}

.sg-v5-field input,
.sg-v5-field select,
.sg-v5-field textarea {
	width: 100%;
	min-height: 56px;
	padding: 14px 16px;
	border: 1.5px solid var(--sg-v5-line);
	border-radius: 14px;
	color: var(--sg-v5-ink);
	background: var(--sg-v5-paper);
	font: inherit;
}

.sg-v5-field textarea {
	min-height: 140px;
	resize: vertical;
}

.sg-v5-faq {
	display: grid;
	gap: 12px;
}

.sg-v5-faq details {
	border: 1.5px solid var(--sg-v5-line);
	border-radius: 16px;
	background: var(--sg-v5-paper);
}

.sg-v5-faq summary {
	min-height: 56px;
	padding: 16px 54px 16px 20px;
	color: var(--sg-v5-forest);
	font-weight: 800;
	cursor: pointer;
}

.sg-v5-faq details > div {
	padding: 0 20px 20px;
}


/* ==========================================================
   12. PLANŠETĖ
   ========================================================== */

@media (max-width: 1050px) {
	.sg-v5-split,
	.sg-v5-split--wide-visual,
	.sg-v5-split--wide-copy {
		grid-template-columns: 1fr;
		gap: 55px;
	}

	.sg-v5-copy {
		max-width: 760px;
	}

	.sg-v5-visual {
		justify-self: center;
		width: min(100%, 600px);
	}

	.sg-v5-grid-3 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}


/* ==========================================================
   13. MOBILIOJI VERSIJA
   ========================================================== */

@media (max-width: 700px) {
	.sg-v5-page {
		font-size: 16px;
	}

	.sg-v5-section {
		padding: 58px 0 68px;
	}

	.sg-v5-container {
		width: min(100% - 40px, var(--sg-v5-container));
	}

	.sg-v5-page h1 {
		max-width: 14ch;
		font-size: clamp(43px, 12vw, 58px);
	}

	.sg-v5-page h2 {
		font-size: clamp(34px, 9vw, 44px);
	}

	.sg-v5-page h3 {
		font-size: clamp(23px, 7vw, 28px);
	}

	.sg-v5-lead {
		font-size: 17px;
	}

	.sg-v5-actions {
		display: grid;
	}

	.sg-v5-page a.sg-v5-button {
		width: 100%;
	}

	.sg-v5-grid-2,
	.sg-v5-grid-3 {
		grid-template-columns: 1fr;
	}

	.sg-v5-grid-stagger > :nth-child(even) {
		transform: none;
	}

	.sg-v5-mini-card,
	.sg-v5-mini-card:nth-child(even) {
		margin-left: 0;
	}

	.sg-v5-color-stripe {
		width: 180px;
	}

	.sg-v5-visual {
		min-height: 500px;
	}

	.sg-v5-arch {
		width: 92%;
		height: 445px;
		border-radius: 220px 220px 25px 25px;
		box-shadow: 10px 10px 0 var(--sg-v5-coral);
	}

	.sg-v5-photo {
		width: 76%;
	}

	.sg-v5-photo__placeholder {
		padding: 20px;
		font-size: 23px;
	}

	.sg-v5-polaroid {
		width: 40%;
		transform: rotate(-2deg);
	}

	.sg-v5-label-card {
		bottom: 15px;
		max-width: 175px;
		font-size: 12px;
	}

	.sg-v5-ring {
		width: 145px;
		height: 145px;
		border-width: 17px;
	}
}


/* ==========================================================
   14. SUMAŽINTAS JUDESYS
   ========================================================== */

@media (prefers-reduced-motion: reduce) {
	.sg-v5-page *,
	.sg-v5-page *::before,
	.sg-v5-page *::after {
		scroll-behavior: auto !important;
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
	}
}
