/* Global resets + interactions that inline styles can't express (hover, focus,
   media queries). Layout/visual styling lives inline in the rendered HTML. */

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: #F7F9FB; }
a { color: #1F5E8C; text-decoration: none; }
a:hover { color: #2C9ED3; }
input, select, textarea { font-family: 'Source Sans 3', sans-serif; }
::selection { background: #2C9ED3; color: #fff; }
img { max-width: 100%; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* ---- Button / link hover states (were style-hover in the design) ---- */
.btn-cyan:hover      { background: #1F5E8C !important; color: #fff; }
.btn-cyan-dark:hover { background: #fff !important;    color: #102A43; }
.btn-navy:hover      { background: #102A43 !important; color: #fff; }
.btn-white:hover     { background: #E7EDF2 !important; color: #1F5E8C; }
.btn-outline:hover   { border-color: #2C9ED3 !important; color: #1F5E8C; }
.chip:hover          { border-color: #2C9ED3 !important; }
.nav-link:hover      { color: #2C9ED3; }

/* ---- Focus visibility for keyboard users ---- */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid #2C9ED3;
  outline-offset: 2px;
}
input:focus, select:focus, textarea:focus { border-color: #2C9ED3; outline: none; }

/* ---- Form validation state ---- */
.input-invalid { border-color: #C0392B !important; }

/* ---- Missing-image placeholder (shown until real images are generated) ---- */
.img-missing {
  background: repeating-linear-gradient(135deg, #EEF3F7, #EEF3F7 12px, #E7EDF2 12px, #E7EDF2 24px);
  position: relative;
}
.img-missing::after {
  content: attr(data-label);
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 16px;
  font-family: 'Sora', sans-serif; font-size: 13px; font-weight: 600; color: #6B8298;
}

/* ---- Responsive header: swap desktop nav for the hamburger under 860px ---- */
.mobile-menu { display: none; }
@media (max-width: 859px) {
  .nav-desktop { display: none !important; }
  .nav-toggle { display: flex !important; }
  .mobile-menu[data-open="true"] { display: flex !important; }
  .mobile-actionbar { display: flex !important; }
  body { padding-bottom: 70px; } /* clear the fixed mobile action bar */

  /* Services jump nav: one horizontal scroll strip instead of 6 stacked rows */
  .jump-nav {
    flex-wrap: nowrap !important;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    scroll-behavior: smooth;
  }
  .jump-nav::-webkit-scrollbar { display: none; }
  .jump-nav .chip { flex: none; white-space: nowrap; }

  /* Edge fades + chevrons signalling the strip scrolls sideways.
     Toggled by app.js based on scroll position (see .can-scroll-*). */
  .jump-nav-wrap::before,
  .jump-nav-wrap::after {
    content: "";
    position: absolute;
    top: 0; bottom: 0;
    width: 44px;
    pointer-events: none;
    opacity: 0;
    transition: opacity .15s ease;
    z-index: 1;
  }
  .jump-nav-wrap::before {
    left: 0;
    background:
      url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='14' viewBox='0 0 8 14'%3E%3Cpath d='M7 1L1 7l6 6' fill='none' stroke='%231F5E8C' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat 6px center / 7px 12px,
      linear-gradient(to right, #F7F9FB 40%, rgba(247,249,251,0));
  }
  .jump-nav-wrap::after {
    right: 0;
    background:
      url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='14' viewBox='0 0 8 14'%3E%3Cpath d='M1 1l6 6-6 6' fill='none' stroke='%231F5E8C' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 6px center / 7px 12px,
      linear-gradient(to left, #F7F9FB 40%, rgba(247,249,251,0));
  }
  .jump-nav-wrap.can-scroll-left::before  { opacity: 1; }
  .jump-nav-wrap.can-scroll-right::after  { opacity: 1; }
}
