/* IMEX Medical's own page blocks (lib/imex-blocks.ts) in the old site's look: Roboto words, Ubuntu
   for the home page's headings, IMEX blue, the hexagon backgrounds. Phone first: the base rules
   are for a narrow screen, wider screens add. */

.ix-page {
  --ix-blue: #085ac9;
  --ix-blue-deep: #0b55c8;
  --ix-navy: #00355d;
  --ix-ink: #1c2434;
  --ix-soft: #5f6b7a;
  --ix-pale: #e8f0fb;
  --ix-line: #dfe6ef;
  --ix-gutter: 16px;
  font-family: "Roboto", sans-serif;
  color: var(--ix-ink);
}
.ix-page section { padding: 48px 0; }
/* Each block runs the width of the window; its words keep to .ix-wrap. */
.ix-page > section { width: 100vw; max-width: 100vw; margin-left: calc(50% - 50vw); box-sizing: border-box; }
#primary:has(> .ix-page) { margin: 0; padding: 0; }
/* 100vw counts a scrollbar; the page, not the blocks, hides what that adds. */
#page:has(.ix-page) { overflow-x: clip; }
.ix-page h2, .ix-page h3 { color: var(--ix-blue); font-family: "Roboto", sans-serif; margin: 0 0 16px; }
.ix-page img { max-width: 100%; height: auto; display: block; }
.ix-wrap { max-width: 1200px; margin: 0 auto; padding: 0 var(--ix-gutter); }
.ix-two, .ix-three { display: grid; gap: 32px; align-items: center; }
.ix-center { text-align: center; margin: 32px 0 0; }
.ix-eyebrow { color: var(--ix-blue); font-weight: 500; font-size: 14px; margin: 0 0 8px; }
.ix-button { display: inline-block; background: var(--ix-blue); color: #fff !important; font-weight: 500; font-size: 14px; padding: 12px 28px; border-radius: 24px; text-decoration: none; }
.ix-button:hover { background: var(--ix-navy); }
.ix-words { line-height: 1.7; }
.ix-words ul { padding-left: 20px; }
.ix-empty { color: var(--ix-soft); text-align: center; }

/* The band at the top of most pages: the page's name on the pale hexagons. */
.ix-page .ix-banner { padding: 0; min-height: 160px; display: grid; place-items: center; text-align: center; background: #c5e6f9 url(/wpc/uploads/2025/08/conback.png) center / cover no-repeat; }
.ix-banner h1 { color: var(--ix-blue); font-family: "Roboto", sans-serif; font-weight: 700; font-size: 32px; margin: 0; padding: 0 var(--ix-gutter); }

/* The home page's slider (its moving parts are site.css and site.js). */
.ix-page .ix-slider { padding: 0; }
.ix-slider .imex-slider { height: clamp(300px, 36.6vw, 500px); }

/* Welcome: words, ticks and a button beside pictures. */
.ix-intro :is(h1, h2) { font-family: "Ubuntu", sans-serif; font-weight: 500; font-size: 30px; line-height: 1.15; color: var(--ix-navy); margin: 0 0 16px; }
.ix-lead { color: var(--ix-soft); line-height: 1.6; }
.ix-ticks { list-style: none; margin: 0 0 28px; padding: 0; display: grid; gap: 10px; }
.ix-ticks li { display: flex; gap: 10px; align-items: center; color: var(--ix-navy); font-weight: 500; }
.ix-ticks svg { width: 20px; height: 20px; flex: none; color: var(--ix-blue); }
.ix-intro-pictures { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 16px; }
.ix-intro-pictures img { width: 100%; height: auto; border-radius: 4px; }

/* Products a block picks, as cards. */
.ix-section-heading { text-align: center; font-family: "Ubuntu", sans-serif !important; font-weight: 500; font-size: 30px; color: var(--ix-navy) !important; margin-bottom: 28px !important; }
.ix-products ul.products { list-style: none; margin: 0; padding: 0; display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.ix-products ul.products::before, .ix-products ul.products::after { content: none !important; }
.ix-products ul.products li.product { width: auto !important; margin: 0 !important; float: none !important; display: flex; flex-direction: column; border: 1px solid var(--ix-line); border-radius: 8px; overflow: hidden; background: #fff; }
.ix-products .astra-shop-thumbnail-wrap { background: var(--ix-pale); aspect-ratio: 1; display: grid; place-items: center; position: relative; }
.ix-products .astra-shop-thumbnail-wrap img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; margin: 0 !important; }
.ix-products .ast-on-card-button, .ix-products .ast-woo-product-category, .ix-products .price { display: none !important; }
.ix-products .astra-shop-summary-wrap { padding: 14px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.ix-products a { text-decoration: none !important; }
.ix-products .woocommerce-loop-product__title { font-family: "Ubuntu", sans-serif !important; font-weight: 500 !important; font-size: 15px !important; line-height: 1.3; color: var(--ix-ink) !important; margin: 0 !important; padding: 0 !important; }
.ix-products .astra-shop-summary-wrap .button { margin-top: auto !important; background: none !important; color: var(--ix-blue) !important; padding: 0 !important; font-size: 13px !important; font-weight: 700; text-align: left; border: 0 !important; }
.ix-products .astra-shop-summary-wrap .button::after { content: " ›"; }

/* Have a question: ways to reach IMEX beside a form, on blue hexagons. */
.ix-contact-box { background: var(--ix-blue-deep) url(/wpc/uploads/2025/08/contactbk.png) center / cover no-repeat; border-radius: 8px; padding: 32px 20px; display: grid; gap: 32px; color: #fff; }
.ix-contact-words h2 { color: #fff; font-family: "Ubuntu", sans-serif; font-weight: 500; font-size: 28px; }
.ix-contact-words .ix-eyebrow { color: #fff; }
.ix-ways { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 20px; }
.ix-ways li { display: flex; gap: 12px; align-items: center; }
.ix-way-icon { width: 40px; height: 40px; border-radius: 50%; background: #fff; padding: 9px; flex: none; object-fit: contain; }
.ix-ways strong { display: block; font-size: 14px; font-weight: 500; }
.ix-ways a, .ix-ways span { color: #fff; font-size: 14px; text-decoration: none; overflow-wrap: anywhere; }

/* The forms, light on blue. */
.ix-page .wpcf7-form p { margin: 0 0 16px; }
.ix-page .wpcf7-form label { display: block; font-size: 14px; font-weight: 500; }
.ix-page .wpcf7-form input:not([type=submit]):not([type=checkbox]), .ix-page .wpcf7-form textarea, .ix-page .wpcf7-form select { width: 100%; margin-top: 6px; border: 0; border-radius: 2px; padding: 9px 12px; font: 15px "Roboto", sans-serif; color: var(--ix-ink); background: #fff; }
.ix-page .wpcf7-form textarea { height: 180px; resize: vertical; }
.ix-page .wpcf7-submit { background: #fff !important; color: var(--ix-blue) !important; border: 0; border-radius: 24px; padding: 10px 34px !important; font-weight: 700; cursor: pointer; }
.ix-page .wpcf7-submit:hover { background: var(--ix-pale) !important; }
.ix-contact-form, .ix-form-box { color: #fff; }
.ix-page .ix-form { background: var(--ix-blue-deep) url(/wpc/uploads/2025/08/contactbk.png) center / cover no-repeat; }
.ix-form-box { max-width: 420px; }
.ix-form-box h2 { color: #fff; text-align: center; font-size: 28px; }
.ix-form-box .wpcf7-form p:last-of-type { text-align: center; }

/* Words beside a picture. */
.ix-split h2 { font-size: 28px; }
.ix-split .ix-words { color: #333; }
.ix-split-picture img { margin: 0 auto; }

/* A heading with a line under it. */
.ix-page .ix-title { text-align: center; padding-bottom: 0; }
.ix-title h2 { font-size: 32px; font-weight: 700; margin: 0; }
.ix-title p { font-size: 24px; font-weight: 300; margin: 4px 0 0; color: #333; }

/* Numbered cards, each on its own coloured folder. */
.ix-cards { list-style: none; margin: 0 auto; padding: 0; display: grid; gap: 24px; max-width: 320px; }
.ix-card { --c: #d9775f; --bg: url(/wpc/uploads/2026/03/p1-new.png); aspect-ratio: 1144 / 1778; background: var(--bg) top left / 100% 100% no-repeat; padding: 9% 9% 22%; text-align: center; display: flex; flex-direction: column; align-items: center; }
.ix-card-2 { --c: #6fa3c3; --bg: url(/wpc/uploads/2026/03/p2-new.png); }
.ix-card-3 { --c: #1f5d84; --bg: url(/wpc/uploads/2026/03/p3-new.png); }
.ix-card-4 { --c: #7f9bcf; --bg: url(/wpc/uploads/2026/03/P4-new.png); }
.ix-card-number { align-self: flex-start; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--c); color: #fff; font-weight: 700; margin: 6% 0 6%; }
.ix-card-icon { width: 56px; height: 56px; object-fit: contain; margin: 0 auto 12px !important; }
.ix-card h3 { color: #111; font-size: 17px; font-weight: 400; text-transform: uppercase; margin-bottom: 10px; }
.ix-card p { font-style: italic; font-size: 13.5px; line-height: 1.6; margin: 0; color: #222; }

/* The people, each with a photo and a signature. */
.ix-people-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 40px; }
.ix-people-list li { text-align: center; }
.ix-person-photo { width: 100%; max-width: 420px; margin: 0 auto 16px !important; border-radius: 6px; }
.ix-people-list h2 { font-size: 26px; margin-bottom: 4px; }
.ix-people-list p { margin: 0 0 8px; color: var(--ix-soft); }
.ix-person-signature { max-width: 180px; margin: 0 auto !important; }

/* Vision and mission either side of a picture. */
.ix-page .ix-vision { background: url(/wpc/uploads/2026/03/newbacknew.png) center / cover no-repeat; }
.ix-vision h2 { font-size: 32px; }
.ix-vision p { font-size: 18px; line-height: 1.7; color: #333; margin: 0; }
.ix-vision-picture img { margin: 0 auto; max-width: 260px; }
.ix-vision-right { text-align: right; }

/* Values, their first letters spelling a word. */
.ix-values-word { text-align: center; color: var(--ix-blue); font-size: 48px; font-weight: 500; letter-spacing: 4px; margin: 0 0 32px; }
.ix-values-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 28px; }
.ix-values-list li { display: flex; gap: 16px; align-items: flex-start; }
.ix-value-icon { width: 48px; height: 48px; border-radius: 8px; background: var(--ix-blue); padding: 10px; flex: none; object-fit: contain; }
.ix-values-list h3 { font-size: 20px; font-weight: 400; margin-bottom: 4px; }
.ix-values-list h3::first-letter { background: var(--ix-blue); color: #fff; padding: 0 2px; margin-right: 1px; }
.ix-values-list p { margin: 0; font-size: 14px; line-height: 1.6; color: #222; }

/* Where IMEX is, with maps. */
.ix-place-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; }
.ix-place-list li { border: 1px solid var(--ix-line); box-shadow: 0 2px 10px rgba(0, 0, 0, .06); padding: 28px 20px; text-align: center; }
.ix-place-list li::before { content: ""; display: block; width: 34px; height: 40px; margin: 0 auto 10px; background: url(/wpc/uploads/2025/08/loc.png) center / contain no-repeat; }
.ix-place-list h3 { color: #111; font-size: 22px; font-weight: 700; margin-bottom: 8px; }
.ix-place-list p { margin: 0; color: #666; line-height: 1.6; }
.ix-maps { display: grid; gap: 20px; margin-top: 24px; }
.ix-maps iframe { width: 100%; height: 300px; border: 0; }

/* The editor's own words and HTML. */
.ix-content .ix-words h2 { font-size: 24px; margin-top: 24px; }

@media (min-width: 545px) {
  .ix-products ul.products { gap: 20px; }
  .ix-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 640px; }
  .ix-place-list, .ix-maps { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
}

@media (min-width: 922px) {
  .ix-page section { padding: 80px 0; }
  .ix-page .ix-banner { min-height: 275px; }
  .ix-banner h1 { font-size: 42px; }
  .ix-two { grid-template-columns: 1fr 1fr; gap: 48px; }
  .ix-three { grid-template-columns: 1fr 1fr 1fr; }
  .ix-intro :is(h1, h2) { font-size: 38px; }
  .ix-section-heading { font-size: 38px; }
  .ix-products ul.products { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .ix-products a { text-decoration: none !important; }
.ix-products .woocommerce-loop-product__title { font-size: 18px !important; }
  .ix-contact-box { grid-template-columns: 1fr 1fr; padding: 48px 64px; align-items: center; }
  .ix-contact-words h2 { font-size: 34px; }
  .ix-cards { grid-template-columns: repeat(4, minmax(0, 1fr)); max-width: none; }
  .ix-people-list { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
  .ix-vision-right { padding-top: 100px; }
  .ix-values-list { grid-template-columns: 1fr 1fr; column-gap: 64px; }
  .ix-values-word { font-size: 64px; }
}
