/*
 * Contact and footer - Figma 30:297 (desktop, 1440) and 33:646 (phone, 390).
 *
 * Every value is read from those nodes. Paired values (phone, desktop) interpolate linearly from 390
 * to 1440; the layout switches from the phone stack to the desktop shape at 768px. Letter spacing is
 * 0 on every node.
 *
 * Only the email address differs from the drawn text: the design draws info@investing.lt, the site
 * builds info@investingnt.lt (operator ruling), which is two letters longer, so the email link frame
 * is wider than the drawn 282 (desktop) / 211 (phone).
 */

/* The band: fill #0a0a09 (30:297 / 33:646). The two parts stack with no gap. The sides of both parts
   are the site gutter, held in the 1312 column above 1440. */
.inv-contact {
	margin: 0;
	background: var(--wp--preset--color--c-01);
}

/* Contact 30:298 / 33:647: padding 70 / 64 / 120 / 64 on the desktop, 64 / 24 / 64 / 24 on the
   phone. Children: the label, then the row; 64 apart on the desktop, 40 on the phone. */
.inv-contact .inv-contact__main {
	display: flex;
	flex-direction: column;
	gap: clamp(40px, calc(40px + 24 * (100vw - 390px) / 1050), 64px);
	container-type: inline-size;
	box-sizing: border-box;
	margin: 0;
	padding:
		clamp(64px, calc(64px + 6 * (100vw - 390px) / 1050), 70px)
		var(--inv-inline)
		clamp(64px, calc(64px + 56 * (100vw - 390px) / 1050), 120px);
}

/* Label 30:299 Inter 400 26 / 31.47; 33:648 Inter 400 16 / 19.36 (121%). #b1b1b1. */
.inv-contact .inv-contact__label {
	margin: 0;
	font-family: var(--wp--preset--font-family--inter);
	font-size: clamp(16px, calc(16px + 10 * (100vw - 390px) / 1050), 26px);
	font-weight: 400;
	line-height: 1.21;
	letter-spacing: 0;
	color: var(--wp--preset--color--c-03);
}

/* Row 30:300: the invitation and the legal block. Stacked 40 apart on the phone (33:646 item
   spacing), side by side 64 apart on the desktop. */
.inv-contact .inv-contact__row {
	display: flex;
	flex-direction: column;
	gap: clamp(40px, calc(40px + 24 * (100vw - 390px) / 1050), 64px);
	margin: 0;
}

/* Invitation 30:301 / 33:649: the heading, then the email link; 40 apart on the desktop, 24 on the
   phone. */
.inv-contact .inv-contact__invite {
	display: flex;
	flex-direction: column;
	gap: clamp(24px, calc(24px + 16 * (100vw - 390px) / 1050), 40px);
	min-width: 0;
	margin: 0;
}

/* Heading 30:302 is drawn Helvetica Neue 500 100 / 100 and 33:650 Inter 500 49 / 49. OPERATOR RULING
   2026-10-16: smaller, to sit with the footer text rather than dominate it - 36 on the phone to 60 on
   the desktop, line height 1.05.
   #fafaf8. The size never falls below the 49 drawn, except on a screen too narrow for the word:
   below about 347px the one unbreakable word "Susisiekime." (6.0 times its size wide in Inter
   500) would not fit between the gutters, so the size is capped by the width there. The cap reads
   the content width of .inv-contact__main (100cqi: no scrollbar, no gutters); the line above it is
   the fallback for a browser without container units. The phone frame uses Inter, the desktop
   frame Helvetica Neue (a system stack, the file is not shipped). */
.inv-contact .inv-contact__heading {
	margin: 0;
	font-family: var(--wp--preset--font-family--inter);
	font-size: min(clamp(36px, calc(36px + 24 * (100vw - 390px) / 1050), 60px), calc((100vw - 2 * var(--inv-gutter)) / 6.1));
	font-size: min(clamp(36px, calc(36px + 24 * (100vw - 390px) / 1050), 60px), calc(100cqi / 6.1));
	font-weight: 500;
	line-height: 1.05;
	letter-spacing: 0;
	color: var(--wp--preset--color--c-06);
}

/* Email link frame 30:303 / 33:651: hugs the text, with a 1px #fafaf8 bottom stroke drawn INSIDE an
   8px bottom padding (top, left, right strokes 0), so 7px of padding plus the 1px border. Text
   30:304 Inter 400 36 / 43.57; 33:652 Inter 400 27 / 32.68 (121%). #fafaf8. */
.inv-contact .inv-contact__email {
	margin: 0;
	line-height: 0;
}

.inv-contact .inv-contact__email a {
	display: inline-block;
	padding: 0 0 7px;
	border-bottom: 1px solid var(--wp--preset--color--c-06);
	font-family: var(--wp--preset--font-family--inter);
	font-size: clamp(27px, calc(27px + 9 * (100vw - 390px) / 1050), 36px);
	font-weight: 400;
	line-height: 1.21;
	letter-spacing: 0;
	color: var(--wp--preset--color--c-06);
	text-decoration: none;
}

/* Legal block 30:305 / 33:653: five lines 10 apart, 320 wide on the desktop and the full width on
   the phone. Text Inter 500 16 / 27.2 (170%) on the desktop, 15 / 25.5 on the phone, #b1b1b1. Two
   weights are drawn: the first and last lines are all 500; on the three middle lines the leading
   word(s) are 400 and the value is 500. So the first and last lines are 500 in CSS, and on the
   middle lines the line is 400 and the value is the editor's own bold, set to 500. The first line (30:306 / 33:654) draws 121% instead of 170%. */
.inv-contact .inv-contact__legal {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin: 0;
}

.inv-contact .inv-contact__legal p {
	margin: 0;
	font-family: var(--wp--preset--font-family--inter);
	font-size: clamp(15px, calc(15px + 1 * (100vw - 390px) / 1050), 16px);
	font-weight: 400;
	line-height: 1.7;
	letter-spacing: 0;
	color: var(--wp--preset--color--c-03);
}

.inv-contact .inv-contact__legal p:first-child {
	line-height: 1.21;
}

.inv-contact .inv-contact__legal p:first-child,
.inv-contact .inv-contact__legal p:last-child,
.inv-contact .inv-contact__legal strong {
	font-weight: 500;
}

/* The legal email line is a link drawn like its neighbours; as an inline-block it is a full line
   tall (25.5 or 27.2), not only the height of its letters (contract floor, WCAG 2.5.8). */
.inv-contact .inv-contact__legal a {
	display: inline-block;
	color: inherit;
	text-decoration: none;
}

/* Footer 30:311 / 33:659: a 1px #222220 top stroke drawn INSIDE the 24px top padding (so 23px plus
   the 1px border), 24px at the bottom; sides are the gutter. Vertical on the phone, 16 apart; one
   row with the two items at the edges on the desktop. */
.inv-contact .inv-contact__footer {
	display: flex;
	flex-direction: column;
	gap: var(--wp--preset--spacing--neutral-20);
	box-sizing: border-box;
	margin: 0;
	padding: 23px var(--inv-inline) 24px;
	border-top: 1px solid #222220;
}

/* Copyright 30:312 / 33:660 and policy links 30:313 / 33:661: Inter 400 10, #555550. The copyright
   draws 121% in both; the links line draws 121% (12.1) on the desktop and 16px on the phone. */
.inv-contact .inv-contact__copyright,
.inv-contact .inv-contact__policies {
	margin: 0;
	font-family: var(--wp--preset--font-family--inter);
	font-size: var(--wp--preset--font-size--s-01);
	font-weight: 400;
	letter-spacing: 0;
	color: var(--wp--preset--color--c-07);
}

.inv-contact .inv-contact__copyright {
	line-height: 1.21;
}

.inv-contact .inv-contact__policies {
	line-height: clamp(12.1px, calc(16px - 3.9 * (100vw - 390px) / 1050), 16px);
}

/* Each link is made a 24px-tall target (contract floor, WCAG 2.5.8) by 6px of padding above and
   below, taken back by the same negative margin so the text and the line do not move. */
.inv-contact .inv-contact__policies a {
	display: inline-block;
	margin: -6px 0;
	padding: 6px 0;
	color: inherit;
	text-decoration: none;
}

/* #555550 on #0a0a09 is 2.6:1, so a focus ring in the link's own colour (base.css) would fall under
   the 3:1 floor for non-text contrast (WCAG 1.4.11); the footer links' ring takes #b1b1b1. */
.inv-contact .inv-contact__policies a:focus-visible {
	outline-color: var(--wp--preset--color--c-03);
}

/* Desktop shape (768 and up): the invitation takes the room the 320px legal block leaves and the
   two are bottom-aligned (30:300 counter axis MAX); if the heading is too wide for both on one
   line, the legal block drops below, as on the phone. The footer is one row, the two items at the
   edges, the policy line right-aligned (30:313). */
@media (min-width: 768px) {
	.inv-contact .inv-contact__row {
		flex-direction: row;
		flex-wrap: wrap;
		align-items: flex-end;
	}

	.inv-contact .inv-contact__invite {
		flex: 1 1 0;
		min-width: min-content;
	}

	.inv-contact .inv-contact__legal {
		flex: 0 0 320px;
	}

	.inv-contact .inv-contact__heading {
		font-family: var(--wp--preset--font-family--helvetica-neue);
	}

	.inv-contact .inv-contact__footer {
		flex-direction: row;
		align-items: flex-start;
		justify-content: space-between;
	}

	.inv-contact .inv-contact__policies {
		text-align: right;
	}
}
