/**
 * @file
 * Site footer (the dark blue section). Figma: "Footer/footer" (2474:6243).
 *
 * Content comes from blocks placed in the footer_form, footer_about,
 * footer_contact and footer regions; this file styles plain block markup
 * (block title = <h2>, body text = <p>/<h3>) so Basic HTML text works.
 */

.site-footer { position: relative; padding: 56px 160px 20px; color: var(--osent-color-white); background-color: var(--osent-color-footer-bg); isolation: isolate; background-image: url(../../images/footer-bg.png); }
/* Map texture over the navy background (Figma: image at 10% opacity; raised
   so it stays visible on screens; tune with --osent-footer-image-opacity). */
.site-footer::before { position: absolute; z-index: -1; inset: 0; background: url(../../images/footer-bg.png) center / cover no-repeat; opacity: var(--osent-footer-image-opacity, 0.2); content: ""; pointer-events: none; }
.site-footer__inner { display: flex; flex-direction: column; gap: 36px; max-width: 1600px; margin: 0 auto; }
.site-footer a { color: inherit; }
.site-footer .block { margin: 0; }
.site-footer h2 { margin: 0 0 24px; color: var(--osent-color-gold); font-size: 36px; font-weight: 400; line-height: normal; }
.site-footer p { margin: 0; }

/* ---- Form: "How can we help you?" ---- */
.site-footer__form { padding-bottom: 36px; border-bottom: 1px solid var(--osent-color-line-light); }
.site-footer__form form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 32px; }
/* Full-width items: messages, textareas, captcha, actions. */
.site-footer__form form > *:not(.form-item),
.site-footer__form .form-type-textarea,
.site-footer__form .form-item:has(textarea),
.site-footer__form .form-type-checkbox { grid-column: 1 / -1; }
.site-footer__form .form-item { margin: 0; }
/* The design shows placeholders instead of labels; keep labels for screen
   readers. Set placeholders on the form fields (Webform: "Placeholder"). */
.site-footer__form .form-item > label:not(.option) { position: absolute !important; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); width: 1px; height: 1px; word-wrap: normal; }
.site-footer__form input[type="text"],
.site-footer__form input[type="email"],
.site-footer__form input[type="tel"],
.site-footer__form input[type="number"],
.site-footer__form select,
.site-footer__form textarea { box-sizing: border-box; width: 100%; height: 51px; padding: 15px 20px; border: 1px solid var(--osent-color-white); border-radius: 25px; background: transparent; color: var(--osent-color-white); font-family: var(--osent-font); font-size: 16px; line-height: 20px; }
.site-footer__form textarea { height: auto; min-height: 120px; resize: vertical; }
.site-footer__form select option { color: var(--osent-color-navy); }
.site-footer__form ::placeholder { color: var(--osent-color-white); opacity: 1; }
.site-footer__form input:focus,
.site-footer__form select:focus,
.site-footer__form textarea:focus { border-color: var(--osent-color-gold); outline: none; }
.site-footer__form .description { margin-top: 6px; font-size: 12px; color: var(--osent-color-line-light); }
.site-footer__form .form-actions { display: flex; justify-content: flex-end; margin: 4px 0 0; }
.site-footer__form .form-actions .button,
.site-footer__form .form-actions input[type="submit"] { margin: 0; padding: 16px 36px; border: 0; border-radius: 100px; background: var(--osent-color-gold); color: var(--osent-color-navy); font-family: var(--osent-font); font-size: 16px; font-weight: 600; letter-spacing: 1.6px; text-transform: uppercase; filter: drop-shadow(var(--osent-shadow-button)); cursor: pointer; }
.site-footer__form .form-actions .button:hover,
.site-footer__form .form-actions .button:focus-visible { opacity: 0.88; }

/* ---- Logo + about text | Contact us ---- */
.site-footer__info { display: flex; gap: 100px; align-items: flex-start; }
.site-footer__about { display: flex; flex: 0 0 394px; flex-direction: column; gap: 31px; padding-top: 18px; }
.site-footer__logo { display: block; width: 183px; }
.site-footer__logo img { display: block; width: 100%; height: auto; }
.site-footer__about p { font-size: 20px; line-height: 28px; font-feature-settings: "lnum" 1, "pnum" 1; }
.site-footer__about p + p { margin-top: 20px; }
/* Small print ("* The contents of this website…"). */
.site-footer__about p small { font-size: inherit; }
.site-footer__about p:has(small),
.site-footer__about p:last-child:not(:first-child) { display: block; max-width: 320px; font-size: 12px; line-height: 18px; letter-spacing: 0.6px; }

/* Vertical divider between the two columns (100px either side). */
.site-footer__contact { flex: 1; min-width: 0; min-height: 200px; padding-left: 100px; border-left: 1px solid var(--osent-color-line-light); }
/* Offices: each office is an <h3> followed by its <p>; two columns. */
.site-footer__contact .text-formatted,
.site-footer__contact .field--name-body { display: grid; grid-auto-flow: column; grid-template-rows: auto auto; grid-auto-columns: minmax(0, 1fr); gap: 24px 42px; }
.site-footer__contact h3 { margin: 0; font-size: 24px; font-weight: 400; line-height: 32px; }
.site-footer__contact p { font-size: 18px; line-height: 30px; font-feature-settings: "lnum" 1, "pnum" 1; }
.site-footer__contact p a { text-decoration: none; }

/* ---- Bottom bar: copyright | legal links | credits ---- */
.site-footer__bottom { padding-top: 20px; border-top: 1px solid var(--osent-color-line-light); }
.site-footer__bottom .region-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 32px; min-height: 42px; font-size: 12px; line-height: 18px; letter-spacing: 0.6px; }
.site-footer__bottom h2 { position: absolute !important; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); width: 1px; height: 1px; }
.site-footer__bottom ul.menu { display: flex; flex-wrap: wrap; margin: 0; padding: 0; list-style: none; }
.site-footer__bottom ul.menu ul { display: none; }
.site-footer__bottom .menu-item { padding: 0; list-style: none; }
.site-footer__bottom .menu-item + .menu-item::before { padding: 0 8px; content: "|"; }
.site-footer__bottom a { text-decoration: none; }
.site-footer__bottom a:hover,
.site-footer__bottom a:focus-visible,
.site-footer__contact a:hover { color: var(--osent-color-gold); }

/* ---- Responsive ---- */
@media (max-width: 1599px) {
	.site-footer { padding-right: var(--osent-gutter); padding-left: var(--osent-gutter); }
}
@media (max-width: 1199px) {
	.site-footer__info { flex-direction: column; gap: 36px; }
	.site-footer__about { flex-basis: auto; padding-top: 0; }
	.site-footer__contact { align-self: stretch; min-height: 0; padding: 36px 0 0; border-top: 1px solid var(--osent-color-line-light); border-left: 0; }
}
@media (max-width: 767px) {
	.site-footer { padding-top: 40px; }
	.site-footer h2 { font-size: 28px; }
	.site-footer__form form { grid-template-columns: minmax(0, 1fr); gap: 16px; }
	.site-footer__form .form-actions { justify-content: stretch; }
	.site-footer__form .form-actions .button,
	.site-footer__form .form-actions input[type="submit"] { width: 100%; }
	.site-footer__about p { font-size: 18px; line-height: 26px; }
	.site-footer__contact .text-formatted,
	.site-footer__contact .field--name-body { grid-auto-flow: row; grid-template-rows: none; gap: 12px; }
	.site-footer__contact h3:not(:first-child) { margin-top: 16px; }
	.site-footer__contact p { font-size: 16px; line-height: 26px; }
	.site-footer__bottom .region-footer { flex-direction: column; align-items: flex-start; }
}
