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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-width: 320px;
  overflow-x: clip;
  background: var(--ih-color-surface);
  color: var(--ih-color-ink);
  font-family: "Onest", Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.58;
  text-rendering: optimizeLegibility;
}

body.is-locked { overflow: hidden; }

img { display: block; max-width: 100%; height: auto; }
a { color: var(--ih-color-teal-900); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
a:hover { color: var(--ih-color-teal-700); }
button, input, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--ih-color-focus) 58%, white);
  outline-offset: 3px;
}

.ih-skip-link {
  position: fixed;
  z-index: 1000;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  transform: translateY(-160%);
  border-radius: var(--ih-radius-sm);
  background: var(--ih-color-teal-900);
  color: #fff;
  font-weight: 800;
}
.ih-skip-link:focus { transform: translateY(0); }

.ih-container { width: min(var(--ih-container), calc(100% - 40px)); margin-inline: auto; }
.ih-section { padding-block: var(--ih-space-section); }
.ih-section--soft { background: var(--ih-color-surface-soft); }
.ih-section--blue { background: var(--ih-color-surface-blue); }

.ih-kicker {
  margin: 0 0 12px;
  color: var(--ih-color-teal-700);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.ih-section-heading {
  max-width: 760px;
  margin: 0;
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 720;
  letter-spacing: -.025em;
  line-height: 1.14;
}
.ih-section-lead { max-width: 760px; margin: 16px 0 0; color: var(--ih-color-muted); font-size: 18px; }

.ih-button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: 12px;
  padding: 11px 18px;
  font-weight: 800;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}
.ih-button--primary { background: var(--ih-color-teal-900); color: #fff; }
.ih-button--primary:hover { background: var(--ih-color-teal-700); color: #fff; }
.ih-button--secondary { border-color: var(--ih-color-border-strong); background: #fff; color: var(--ih-color-teal-900); }
.ih-button--ghost { background: transparent; color: var(--ih-color-teal-900); }
.ih-button--small { min-height: 40px; padding: 8px 14px; font-size: 14px; }

/* Shared header */
.ih-masthead {
  position: relative;
  z-index: 100;
  min-height: var(--ih-header-height);
  border-bottom: 1px solid var(--ih-color-border);
  background: rgba(255, 255, 255, .97);
  box-shadow: var(--ih-shadow-header);
}
.ih-header-inner { display: flex; min-height: var(--ih-header-height); align-items: center; gap: 18px; }
.ih-logo { flex: 0 0 154px; }
.ih-logo img { width: 148px; }
.ih-primary-nav { display: flex; flex: 1; align-items: center; justify-content: center; gap: 6px; }
.ih-primary-nav a,
.ih-nav-trigger {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  border: 0;
  border-radius: 9px;
  padding: 8px 10px;
  background: transparent;
  color: var(--ih-color-ink);
  font-size: 13px;
  font-weight: 760;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}
.ih-primary-nav a:hover, .ih-nav-trigger:hover { background: var(--ih-color-teal-100); color: var(--ih-color-teal-900); }
.ih-nav-item { position: relative; }
.ih-submenu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  display: grid;
  min-width: 280px;
  gap: 2px;
  padding: 10px;
  border: 1px solid var(--ih-color-border);
  border-radius: var(--ih-radius-md);
  background: #fff;
  box-shadow: var(--ih-shadow-card);
}
.ih-submenu[hidden] { display: none; }
.ih-submenu a { justify-content: flex-start; white-space: normal; }
.ih-header-tools { display: flex; align-items: center; gap: 8px; }
.ih-language { color: var(--ih-color-teal-900); font-size: 12px; font-weight: 850; white-space: nowrap; }
.ih-mobile-menu-button { display: none; }

/* Search stays below masthead on every viewport. */
.ih-search-zone { position: relative; z-index: 80; padding: 20px 20px 24px; background: #fff; }
.ih-site-search { width: min(780px, 100%); margin-inline: auto; }
.ih-search-form {
  display: flex;
  min-height: 58px;
  align-items: center;
  gap: 10px;
  border: 2px solid #72bbb5;
  border-radius: 18px;
  padding: 5px 6px 5px 18px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(7, 91, 97, .09);
}
.ih-search-icon { flex: 0 0 auto; color: var(--ih-color-teal-900); font-size: 22px; line-height: 1; }
.ih-search-form input { flex: 1; min-width: 0; height: 44px; border: 0; outline: 0; color: var(--ih-color-ink); background: transparent; }
.ih-search-form input::placeholder { color: #789099; opacity: 1; }
.ih-search-form button { flex: 0 0 auto; min-height: 44px; border: 0; border-radius: 12px; padding: 10px 24px; background: var(--ih-color-teal-900); color: #fff; font-weight: 850; cursor: pointer; }
.ih-search-form:focus-within { border-color: var(--ih-color-focus); box-shadow: 0 10px 30px rgba(7, 91, 97, .12), 0 0 0 4px rgba(7, 91, 97, .10); }
.ih-search-panel {
  position: absolute;
  top: calc(100% - 13px);
  left: 50%;
  width: min(820px, calc(100% - 32px));
  max-height: min(540px, 70vh);
  overflow: auto;
  transform: translateX(-50%);
  border: 1px solid var(--ih-color-border);
  border-radius: 0 0 18px 18px;
  padding: 18px;
  background: #fff;
  box-shadow: var(--ih-shadow-card);
}
.ih-search-panel[hidden] { display: none; }
.ih-search-status { margin: 0 0 10px; color: var(--ih-color-muted); font-size: 13px; }
.ih-search-filters { display: flex; flex-wrap: wrap; gap: 7px; margin: 0 0 12px; }
.ih-search-filters[hidden] { display: none; }
.ih-search-filter { border: 1px solid var(--ih-color-border); border-radius: var(--ih-radius-pill); padding: 6px 10px; background: #fff; color: var(--ih-color-ink-soft); font-size: 12px; font-weight: 780; cursor: pointer; }
.ih-search-filter[aria-pressed="true"] { border-color: var(--ih-color-teal-900); background: var(--ih-color-teal-900); color: #fff; }
.ih-search-results { display: grid; gap: 8px; }
.ih-search-result { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; border: 1px solid var(--ih-color-border); border-radius: 12px; padding: 12px; text-decoration: none; }
.ih-search-result:hover { border-color: var(--ih-color-teal-500); background: var(--ih-color-surface-soft); }
.ih-result-type { border-radius: var(--ih-radius-pill); padding: 5px 8px; background: var(--ih-color-teal-100); color: var(--ih-color-teal-900); font-size: 10px; font-weight: 850; text-transform: uppercase; }
.ih-search-result strong, .ih-search-result small { display: block; }
.ih-search-result small { margin-top: 3px; color: var(--ih-color-muted); }
.ih-search-continuation { margin: 14px 0 0; padding-top: 12px; border-top: 1px solid var(--ih-color-border); color: var(--ih-color-muted); font-size: 13px; }

/* Contact links and cards */
.ih-action-cluster { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 28px; }
.ih-direct-contact { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.ih-direct-contact small { color: var(--ih-color-muted); }
.ih-direct-contact a, .ih-chat-link { border: 0; padding: 7px 0; background: transparent; color: var(--ih-color-teal-900); font: inherit; font-weight: 800; text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 4px; cursor: pointer; }

.ih-card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 30px; }
.ih-card-grid + .ih-note,
.ih-detail-grid + .ih-note { margin-top: 24px; }
.ih-card { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--ih-color-border); border-radius: var(--ih-radius-lg); background: #fff; box-shadow: 0 5px 18px rgba(23, 63, 84, .04); }
.ih-card-media { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--ih-color-surface-blue); }
.ih-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease; }
.ih-card:hover .ih-card-media img { transform: scale(1.025); }
.ih-card-copy { display: flex; flex: 1; flex-direction: column; padding: 20px; }
.ih-card-copy h3 { margin: 0; font-size: 21px; line-height: 1.25; }
.ih-card-copy p { margin: 9px 0 0; color: var(--ih-color-muted); }
.ih-card-source { display: block; margin-top: 12px; color: #6e858d; font-size: 11px; line-height: 1.4; }
.ih-card-link { display: inline-block; align-self: flex-start; margin-top: auto; padding-top: 14px; font-weight: 800; }

.ih-detail-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 28px; }
.ih-detail { border-top: 3px solid var(--ih-color-teal-500); padding: 18px 18px 20px; background: #fff; }
.ih-detail h3 { margin: 0; font-size: 18px; }
.ih-detail p { margin: 8px 0 0; color: var(--ih-color-muted); }

.ih-split { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(280px, .75fr); gap: 54px; align-items: start; }
.ih-route { display: grid; grid-template-columns: 40px 1fr; gap: 14px; margin-top: 24px; }
.ih-route-number { display: grid; width: 38px; height: 38px; place-items: center; border-radius: 50%; background: var(--ih-color-teal-900); color: #fff; font-weight: 850; }
.ih-route h3 { margin: 3px 0 0; font-size: 18px; }
.ih-route p { margin: 6px 0 0; color: var(--ih-color-muted); }
.ih-note { border: 1px solid var(--ih-color-border); border-left: 4px solid var(--ih-color-teal-500); border-radius: var(--ih-radius-md); padding: 22px; background: #fff; color: var(--ih-color-muted); box-shadow: var(--ih-shadow-card); }
.ih-note strong { color: var(--ih-color-ink); }

.ih-checklist { display: grid; gap: 12px; margin: 22px 0 0; padding: 0; list-style: none; }
.ih-checklist li { position: relative; padding-left: 30px; }
.ih-checklist li::before { content: "✓"; position: absolute; left: 0; color: var(--ih-color-teal-700); font-weight: 900; }

.ih-faq { display: grid; gap: 10px; margin-top: 26px; }
.ih-faq details { border: 1px solid var(--ih-color-border); border-radius: var(--ih-radius-md); background: #fff; }
.ih-faq summary { padding: 18px 20px; color: var(--ih-color-ink); font-weight: 800; cursor: pointer; }
.ih-faq p { margin: 0; padding: 0 20px 20px; color: var(--ih-color-muted); }

/* Form remains local in prototype. */
.ih-contact-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(340px, .8fr); gap: 48px; align-items: start; }
.ih-form { border: 1px solid var(--ih-color-border); border-radius: var(--ih-radius-lg); padding: 26px; background: #fff; box-shadow: var(--ih-shadow-card); }
.ih-field { display: grid; gap: 7px; margin-top: 14px; }
.ih-field:first-child { margin-top: 0; }
.ih-field span, .ih-channel-group legend { color: var(--ih-color-ink); font-size: 14px; font-weight: 780; }
.ih-field .ih-required { color: #a92929; }
.ih-honeypot { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
.ih-field input, .ih-field textarea { width: 100%; min-height: 48px; border: 1px solid #c9dedd; border-radius: 12px; padding: 12px 14px; background: #fff; color: var(--ih-color-ink); }
.ih-field textarea { min-height: 116px; resize: vertical; }
.ih-channel-group { margin: 16px 0 0; padding: 0; border: 0; }
.ih-channel-options { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.ih-channel-options label { display: flex; align-items: center; gap: 7px; border: 1px solid var(--ih-color-border); border-radius: var(--ih-radius-pill); padding: 7px 10px; color: var(--ih-color-ink-soft); font-size: 13px; }
.ih-consent { display: flex; align-items: flex-start; gap: 9px; margin: 16px 0; color: var(--ih-color-muted); font-size: 14px; line-height: 1.5; }
.ih-consent input { margin-top: 4px; }
.ih-form-status { margin: 12px 0 0; color: var(--ih-color-teal-900); font-size: 13px; font-weight: 700; }

/* Chat is separate from search. */
.ih-chat-launcher { position: fixed; z-index: 120; right: 18px; bottom: 18px; min-height: 48px; border: 0; border-radius: var(--ih-radius-pill); padding: 12px 17px; background: var(--ih-color-teal-900); color: #fff; font-weight: 850; box-shadow: 0 10px 28px rgba(7, 91, 97, .24); cursor: pointer; }
.ih-chat-panel { position: fixed; z-index: 130; right: 18px; bottom: 78px; width: min(370px, calc(100vw - 36px)); overflow: hidden; border: 1px solid var(--ih-color-border); border-radius: var(--ih-radius-lg); background: #fff; box-shadow: 0 20px 60px rgba(23, 63, 84, .2); }
.ih-chat-panel[hidden] { display: none; }
.ih-chat-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px; background: var(--ih-color-teal-900); color: #fff; }
.ih-chat-head button { width: 36px; height: 36px; border: 1px solid rgba(255,255,255,.45); border-radius: 50%; background: transparent; color: #fff; font-size: 22px; cursor: pointer; }
.ih-chat-body { padding: 18px; }
.ih-chat-message { margin: 0; border-radius: 12px; padding: 12px; background: var(--ih-color-surface-soft); color: var(--ih-color-muted); }
.ih-chat-body p + p { margin-top: 10px; }
.ih-chat-form { display: grid; gap: 10px; margin-top: 14px; }
.ih-chat-form label { display: block; color: var(--ih-color-ink); font-size: 13px; font-weight: 780; }
.ih-chat-form label > span { color: #a92929; }
.ih-chat-form input, .ih-chat-form textarea { display: block; width: 100%; min-width: 0; margin-top: 6px; border: 1px solid #c9dedd; border-radius: 10px; padding: 10px 12px; background: #fff; color: var(--ih-color-ink); font: inherit; font-weight: 500; }
.ih-chat-form textarea { resize: vertical; }
.ih-chat-form input:focus, .ih-chat-form textarea:focus { border-color: var(--ih-color-teal-700); outline: 2px solid rgba(16, 119, 123, .18); outline-offset: 1px; }
.ih-chat-form .ih-button { justify-self: start; }
.ih-chat-status { min-height: 18px; margin: 0; color: var(--ih-color-teal-900); font-size: 12px; font-weight: 700; }

/* Footer */
.ih-footer { border-top: 1px solid var(--ih-color-border); padding: 52px 0 28px; background: var(--ih-color-surface-soft); }
.ih-footer-grid { display: grid; grid-template-columns: 1.35fr repeat(3, 1fr); gap: 42px; }
.ih-footer-brand img { width: 172px; }
.ih-footer-brand p { max-width: 310px; margin: 18px 0 0; color: var(--ih-color-muted); font-size: 14px; }
.ih-footer-group strong { display: block; margin-bottom: 10px; color: var(--ih-color-teal-900); }
.ih-footer-group a { display: block; min-height: 34px; color: var(--ih-color-ink-soft); font-size: 14px; font-weight: 680; text-decoration: none; }
.ih-footer-group a:hover { color: var(--ih-color-teal-900); text-decoration: underline; }
.ih-footer-bottom { display: grid; grid-template-columns: 1.2fr 1fr; gap: 16px 28px; margin-top: 34px; padding-top: 22px; border-top: 1px solid var(--ih-color-border); font-size: 12px; }
.ih-footer-legal, .ih-socials { display: flex; flex-wrap: wrap; gap: 9px 14px; }
.ih-socials { justify-content: flex-end; }
.ih-footer-disclaimer { grid-column: 1 / -1; margin: 0; color: #70878f; }

/* Mobile menu overlay */
.ih-mobile-panel { position: fixed; z-index: 200; inset: 0; overflow: auto; padding: 18px; background: rgba(11, 40, 52, .55); }
.ih-mobile-panel[hidden] { display: none; }
.ih-mobile-panel-inner { width: min(420px, 100%); min-height: calc(100vh - 36px); margin-left: auto; border-radius: 20px; padding: 20px; background: #fff; }
.ih-mobile-panel-head { display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--ih-color-border); padding-bottom: 14px; }
.ih-mobile-panel-head strong { font-size: 20px; }
.ih-mobile-panel-head button { width: 42px; height: 42px; border: 1px solid var(--ih-color-border); border-radius: 50%; background: #fff; font-size: 24px; }
.ih-mobile-links { display: grid; gap: 2px; padding: 14px 0; }
.ih-mobile-links a { min-height: 46px; border-radius: 10px; padding: 11px 10px; color: var(--ih-color-ink); font-weight: 760; text-decoration: none; }
.ih-mobile-links a:hover { background: var(--ih-color-surface-soft); }
.ih-mobile-subgroup { display: grid; gap: 2px; margin-top: 10px; padding-top: 12px; border-top: 1px solid var(--ih-color-border); }
.ih-mobile-subgroup strong { display: block; margin-bottom: 7px; color: var(--ih-color-teal-700); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
.ih-mobile-subgroup a { display: flex; align-items: center; }
.ih-mobile-links .ih-button { color: #fff; }

@media (max-width: 1100px) {
  .ih-primary-nav { gap: 0; }
  .ih-primary-nav a, .ih-nav-trigger { padding-inline: 7px; font-size: 12px; }
  .ih-header-cta { display: none; }
}

@media (max-width: 900px) {
  :root { --ih-header-height: 66px; }
  .ih-container { width: min(100% - 28px, var(--ih-container)); }
  .ih-logo { flex-basis: 124px; }
  .ih-logo img { width: 122px; }
  .ih-primary-nav, .ih-language { display: none; }
  .ih-header-tools { margin-left: auto; }
  .ih-mobile-menu-button { display: inline-flex; }
  .ih-search-zone { padding: 12px 14px 20px; }
  .ih-search-form { min-height: 52px; border-radius: 14px; padding: 4px 5px 4px 13px; }
  .ih-search-form input { height: 42px; font-size: 14px; }
  .ih-search-form button { min-height: 42px; padding-inline: 15px; }
  .ih-search-panel { top: calc(100% - 9px); width: calc(100% - 28px); }
  .ih-card-grid, .ih-detail-grid { grid-template-columns: 1fr 1fr; }
  .ih-card-grid .ih-card:last-child { grid-column: 1 / -1; }
  .ih-split, .ih-contact-layout { grid-template-columns: 1fr; gap: 30px; }
  .ih-footer-grid { grid-template-columns: 1fr 1fr; gap: 30px 24px; }
  .ih-footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 620px) {
  .ih-container { width: min(100% - 32px, var(--ih-container)); }
  .ih-section { padding-block: 48px; }
  .ih-search-form { gap: 5px; }
  .ih-search-icon { font-size: 19px; }
  .ih-search-form input { font-size: 13px; }
  .ih-search-form button { padding-inline: 13px; font-size: 13px; }
  .ih-search-result { grid-template-columns: 1fr auto; }
  .ih-result-type { grid-column: 1 / -1; width: max-content; }
  .ih-action-cluster { align-items: stretch; flex-direction: column; }
  .ih-action-cluster .ih-button { width: 100%; }
  .ih-direct-contact { align-items: flex-start; flex-direction: column; gap: 2px; }
  .ih-card-grid, .ih-detail-grid { grid-template-columns: 1fr; }
  .ih-card-grid .ih-card:last-child { grid-column: auto; }
  .ih-contact-layout { gap: 26px; }
  .ih-form { padding: 20px; }
  .ih-footer { padding-top: 42px; }
  .ih-footer-grid { grid-template-columns: 1fr 1fr; gap: 26px 18px; }
  .ih-footer-bottom { grid-template-columns: 1fr; }
  .ih-socials { justify-content: flex-start; }
  .ih-footer-disclaimer { grid-column: auto; }
  .ih-chat-launcher { right: 12px; bottom: 12px; }
  .ih-chat-panel { right: 12px; bottom: 70px; width: calc(100vw - 24px); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
