/* =========================================================================
   Billi International: template-international.php.
   Scoped to .it (.in is taken by plugin CSS), mobile first, min-width
   queries at 640 / 768 / 900 / 1200. The house recipe from the 18 Sep 2026
   spec, renamed, plus the map hero, the distributor lede and the office
   directory. The form section is product.css's .pd-enquiry.

   Replaces about 200 lines of .page-template-page-international and
   .page-id-49 rules in desktop.css / responsive.css, which stay for the
   legacy template.
   ========================================================================= */

.it {
	--it-navy: #181d46;      /* Billi Blue */
	--it-lightblue: #90cdeb; /* primary button on dark, accents */
	--it-grey: #eaeaea;      /* borders, rules */
	--it-band-grey: #f5f5f5;
	--it-band-tint: #f1f5f5; /* Green Grey */
	--it-text: #000;
	--it-muted: #75757b;
	--it-gutter: 20px;

	font-family: var(--font-din);
	color: var(--it-text);
	line-height: 1.5;
}

@media (min-width: 900px) {
	.it { --it-gutter: 40px; }
}

.it *,
.it *::before,
.it *::after { box-sizing: border-box; }

/* framework.css sets a global img { width: 100% }: width must be reset, not
   just max-width. */
.it img { max-width: 100%; width: auto; height: auto; display: block; }

.it-container {
	width: 100%;
	max-width: 1436px;
	margin: 0 auto;
	padding-left: var(--it-gutter);
	padding-right: var(--it-gutter);
}

/* ---- Sections ------------------------------------------------------------ */

.it-section { padding: 48px 0; }

@media (min-width: 900px) {
	.it-section { padding: 80px 0; }
}

.it-section--grey { background: var(--it-band-grey); }
.it-section--tint { background: var(--it-band-tint); }

/* Headings are real h2/h3/h4 elements printed from plain-text fields. */
.it .it-section-heading {
	margin: 0 0 12px;
	font-size: 26px;
	font-weight: 600;
	line-height: 1.18;
	color: var(--it-navy);
	text-transform: none;
	letter-spacing: normal;
}

.it-section-intro {
	margin: 0;
	max-width: 66ch;
	font-size: 17px;
	line-height: 1.55;
	color: var(--it-muted);
}

.it-section-head { margin-bottom: 28px; }
.it .it-section-head > :last-child { margin-bottom: 0; }

@media (min-width: 900px) {
	.it .it-section-heading { font-size: 34px; }
	.it-section-head { margin-bottom: 40px; }
}

/* WYSIWYG output. Base rules sit inside :where() so that band overrides win. */
:where(.it) .it-text > :first-child { margin-top: 0; }
:where(.it) .it-text > :last-child { margin-bottom: 0; }
:where(.it) .it-text p { margin: 0 0 0.85em; }
:where(.it) .it-text :is(h2, h3, h4) {
	margin: 1.4em 0 0.5em;
	font-size: 20px;
	font-weight: 600;
	line-height: 1.25;
	color: var(--it-navy);
}
:where(.it) .it-text :is(ul, ol) { margin: 0 0 0.9em; padding-left: 1.15em; }
:where(.it) .it-text li { margin: 0 0 0.45em; }
:where(.it) .it-text a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }

/* ---- Buttons ---------------------------------------------------------------
   desktop.css has a global a:hover { opacity: .7 }: every button opts out. */

/* 16px on a 1.5 line with 12px padding: 48px tall, the size the homepage,
   Why Billi, Specify Billi and the sector pages use. */
.it .it-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 48px;
	padding: 12px 28px;
	border: 0;
	border-radius: 2px;
	font-size: 16px;
	font-weight: 600;
	line-height: 1.5;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.it .it-btn:hover,
.it .it-btn:focus-visible { opacity: 1; }

.it .it-btn--light { background: var(--it-lightblue); color: var(--it-navy); }
.it .it-btn--light:hover,
.it .it-btn--light:focus-visible { background: #fff; color: var(--it-navy); }

.it .it-btn--ghost { background: transparent; color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.6); }
.it .it-btn--ghost:hover,
.it .it-btn--ghost:focus-visible { background: #fff; color: var(--it-navy); box-shadow: none; }

/* framework.css removes focus outlines sitewide. Navy on light
   (#90cdeb on white is 1.7:1), white on the hero. */
.it :is(a, button, summary, input, select, textarea):focus-visible { outline: 2px solid var(--it-navy); outline-offset: 3px; }
.it .it-hero :is(a, button, summary):focus-visible { outline-color: #fff; }

/* ---- Hero ------------------------------------------------------------------
   The title is an <h1>: typography.css gives it DM Serif Display at 400.
   Never set its font-weight or font-family. The legacy page's dotted map sits
   behind the copy on the right as decoration (aria-hidden); the offices it
   used to hide behind hover markers are listed as text below. */

.it-hero {
	position: relative;
	isolation: isolate;
	display: flex;
	align-items: center;
	min-height: 340px;
	background: var(--it-navy);
	color: #fff;
	overflow: hidden;
}

/* Prefixed: the namespace img reset would otherwise win. */
.it .it-hero__map {
	position: absolute;
	z-index: -1;
	top: 50%;
	right: -4%;
	width: min(60%, 880px);
	max-width: none;
	opacity: 0.18;
	transform: translateY(-50%);
	pointer-events: none;
}

@media (max-width: 899px) {
	.it .it-hero__map { display: none; }
}

.it-hero__inner { width: 100%; padding-top: 48px; padding-bottom: 48px; }
.it-hero__content { max-width: 720px; }

.it-hero__eyebrow {
	margin: 0 0 12px;
	color: var(--it-lightblue);
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.it .it-hero__title { margin: 0; color: #fff; font-size: 34px; line-height: 1.12; }

.it-hero__intro {
	margin: 16px 0 0;
	max-width: 62ch;
	color: rgba(255, 255, 255, 0.9);
	font-size: 17px;
	line-height: 1.5;
}

.it-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

@media (min-width: 900px) {
	.it-hero__inner { padding-top: 72px; padding-bottom: 72px; }
	.it .it-hero__title { font-size: 52px; }
	.it-hero__intro { font-size: 18px; }
}

/* ---- Distributor opportunity ------------------------------------------------ */

.it-lede__grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 16px;
}

.it-lede__grid > * { min-width: 0; }

.it .it-lede__heading { margin: 0; }

.it-lede__text {
	max-width: 70ch;
	font-size: 17px;
	line-height: 1.65;
}

@media (min-width: 900px) {
	.it-lede__grid { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 64px; align-items: start; }
}

/* ---- Billi around the world -----------------------------------------------------
   One card per office or distributor, grouped by region. Contact lines are
   real links: tel:, mailto: and https:. */

.it-offices { scroll-margin-top: calc(var(--header-chrome-h, 74px) + var(--trust-bar-h, 0px) + 16px); }

.it-region + .it-region { margin-top: 40px; }

.it .it-region__heading {
	margin: 0 0 16px;
	padding-bottom: 12px;
	border-bottom: 1px solid var(--it-grey);
	color: var(--it-navy);
	font-size: 20px;
	font-weight: 600;
	line-height: 1.25;
	text-transform: none;
	letter-spacing: normal;
}

.it-region__list {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 16px;
	margin: 0;
	padding: 0;
	list-style: none;
}

/* Three across at most: at four, the longest email addresses
   (enquiry@lifesolutionschina.cn) no longer fit beside their label. */
@media (min-width: 640px) {
	.it-region__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 900px) {
	.it-region__list { gap: 20px; }
}

@media (min-width: 1200px) {
	.it-region__list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.it-office {
	min-width: 0;
	margin: 0;
	padding: 20px 22px;
	border: 1px solid var(--it-grey);
	border-radius: 4px;
	background: #fff;
}

.it .it-office__country {
	margin: 0;
	color: var(--it-navy);
	font-size: 18px;
	font-weight: 600;
	line-height: 1.25;
	text-transform: none;
	letter-spacing: normal;
}

.it-office__name {
	margin: 4px 0 0;
	color: var(--it-muted);
	font-size: 15px;
	line-height: 1.4;
}

.it-office__contacts {
	display: grid;
	gap: 8px;
	margin: 16px 0 0;
	padding-top: 14px;
	border-top: 1px solid var(--it-grey);
}

/* Label above the value on narrow cards, beside it from 900px, so an
   address is never broken mid-word when there is room to avoid it. */
.it-office__line {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 2px;
}

.it-office__line dt {
	margin: 0;
	color: var(--it-muted);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.it-office__line dd {
	min-width: 0;
	margin: 0;
	font-size: 15px;
	line-height: 1.4;
	overflow-wrap: anywhere;
}

@media (min-width: 900px) {
	.it-office__line {
		grid-template-columns: 68px minmax(0, 1fr);
		gap: 8px;
		align-items: baseline;
	}
}

.it .it-office__line a {
	color: var(--it-navy);
	font-weight: 600;
	text-decoration: underline;
	text-decoration-color: rgba(24, 29, 70, 0.3);
	text-underline-offset: 3px;
}

.it .it-office__line a:hover { opacity: 1; text-decoration-color: currentColor; }

/* ---- Expression of interest (#it-form) ----------------------------------------------
   product.css's .pd-enquiry. The note sits in the aside where the product
   pages print their next steps. */

.it-form__note {
	margin-top: 28px;
	padding: 20px 24px;
	border-radius: 4px;
	background: #fff;
}

.it-form__note-title {
	margin: 0 0 4px;
	color: var(--it-navy);
	font-size: 17px;
	font-weight: 600;
	line-height: 1.3;
}

.it-form__note-text {
	margin: 0;
	font-size: 15px;
	line-height: 1.5;
}

.it .it-form__note-text a { color: var(--it-navy); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.it .it-form__note-text a:hover { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
	.it .it-btn { transition: none; }
}
