/* Logigate website: shared styles
   Most layout and visual styling is inline in each page (exported from the design).
   This file holds the global rules, hover/focus states, the slideshow, the mobile menu and form feedback. */

/* ---------- fonts (self-hosted, SIL Open Font License) ---------- */
@font-face { font-family: Inter; font-style: normal; font-weight: 400; font-display: swap; src: url('../assets/fonts/inter-latin-400.woff2') format('woff2'); }
@font-face { font-family: Inter; font-style: normal; font-weight: 500; font-display: swap; src: url('../assets/fonts/inter-latin-500.woff2') format('woff2'); }
@font-face { font-family: Inter; font-style: normal; font-weight: 600; font-display: swap; src: url('../assets/fonts/inter-latin-600.woff2') format('woff2'); }
@font-face { font-family: Inter; font-style: normal; font-weight: 700; font-display: swap; src: url('../assets/fonts/inter-latin-700.woff2') format('woff2'); }
@font-face { font-family: Sora; font-style: normal; font-weight: 500; font-display: swap; src: url('../assets/fonts/sora-latin-500.woff2') format('woff2'); }
@font-face { font-family: Sora; font-style: normal; font-weight: 600; font-display: swap; src: url('../assets/fonts/sora-latin-600.woff2') format('woff2'); }
@font-face { font-family: Sora; font-style: normal; font-weight: 700; font-display: swap; src: url('../assets/fonts/sora-latin-700.woff2') format('woff2'); }

:root {
  --navy: #0B1B3F;
  --blue: #0048A8;
  --blue-dark: #003A8C;
  --coral: #D63B41;
  --coral-dark: #B92F36;
  --ink: #0F1B33;
  --text: #3A4560;
  --muted: #5A6478;
  --line: #E2E7F0;
  --surface: #F3F6FB;
  --font-head: Sora, Inter, system-ui, sans-serif;
  --font-body: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font-body); color: var(--ink); background: #FFFFFF; }
img, svg { max-width: 100%; }
img { height: auto; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-dark); }
[id] { scroll-margin-top: 24px; }

/* ---------- accessibility ---------- */
.skip-link { position: absolute; left: 12px; top: -48px; z-index: 100; padding: 10px 16px; border-radius: 8px; background: var(--navy); color: #FFFFFF; font-weight: 600; }
.skip-link:focus { top: 12px; color: #FFFFFF; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.hero :focus-visible { outline-color: #FFFFFF; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--blue); outline-offset: 1px; }

/* ---------- hover states ---------- */
.nav-a:hover { color: var(--blue) !important; }
.top-a:hover { color: #FFFFFF !important; }
.btn-c:hover { background: var(--coral-dark) !important; color: #FFFFFF !important; }
.btn-o:hover { background: rgba(255,255,255,.12) !important; color: #FFFFFF !important; }
.btn-b:hover { background: var(--blue-dark) !important; color: #FFFFFF !important; }
.card:hover { border-color: #B8C6DD !important; box-shadow: 0 6px 20px rgba(11,27,63,.07); }
.lnk:hover { color: var(--blue-dark) !important; }
.lnk-d:hover { color: #FFFFFF !important; }
.arw:hover { background: rgba(255,255,255,.16) !important; }

/* footer (scoped so it does not affect page links) */
.site-footer a { color: var(--text); }
.site-footer a:hover, .site-footer .f-a:hover { color: var(--blue) !important; }
.site-footer .soc:hover { background: #EAF0FA !important; color: var(--blue) !important; border-color: #B8C6DD !important; }

/* ---------- placeholders (kept from design) ---------- */
.ph { background-color: #DCE3EE; background-image: radial-gradient(#C3CDDD 1px, transparent 1px); background-size: 14px 14px; }
.ph-d { background-color: #14244A; background-image: radial-gradient(#22365F 1.2px, transparent 1.2px); background-size: 16px 16px; }

/* ---------- home slideshow ---------- */
.hero-slide { opacity: 0; z-index: 1; pointer-events: none; }
.hero-slide.is-active { opacity: 1; z-index: 2; pointer-events: auto; }
.hero .dot { width: 18px; background: rgba(255,255,255,.4); }
.hero .dot:hover { background: rgba(255,255,255,.8); }
.hero .dot.is-active { width: 40px; background: #FFFFFF; }
@media (max-width: 640px) {
  .hero { height: 560px !important; }
}

/* ---------- header & mobile menu ---------- */
.nav-toggle { display: none; }
@media (max-width: 860px) {
  .site-header .nav-toggle {
    display: inline-flex; align-items: center; justify-content: center; order: 2;
    width: 44px; height: 44px; margin-left: auto; border: 1px solid var(--line); border-radius: 8px;
    background: #FFFFFF; color: var(--navy); cursor: pointer;
  }
  .site-header .header-cta { order: 1; margin-left: auto; min-height: 40px !important; padding: 0 14px !important; font-size: 13.5px !important; }
  .site-header .site-nav {
    order: 3; display: none !important; width: 100%; flex-direction: column; align-items: stretch !important;
    gap: 0 !important; padding: 4px 0 12px; border-top: 1px solid var(--line);
  }
  .site-header .site-nav.is-open { display: flex !important; }
  .site-header .site-nav a { min-height: 48px !important; border-bottom: 1px solid var(--line) !important; }
  .site-header .site-nav a[aria-current="page"] { border-bottom-color: var(--blue) !important; }
}

@media (max-width: 860px) {
  .site-header .header-bar { padding: 0 20px !important; gap: 10px 12px !important; flex-wrap: wrap !important; }
  .site-header .brand img { height: 20px !important; }
}
@media (max-width: 420px) {
  .site-header .brand img { height: 17px !important; }
}

/* darker photo shading on small screens so hero text stays readable */
@media (max-width: 760px) {
  .shade { background: linear-gradient(180deg, rgba(11,27,63,.78) 0%, rgba(11,27,63,.88) 100%) !important; }
}

/* ---------- forms ---------- */
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
form [aria-invalid="true"] { border-color: var(--coral) !important; box-shadow: 0 0 0 3px rgba(214,59,65,.15); }
.form-status { grid-column: 1 / -1; margin: 0; font-size: 13.5px; line-height: 1.5; min-height: 0; }
.form-status:empty { display: none; }
.form-status.is-ok { padding: 12px 14px; border-radius: 8px; background: #E8F5EE; color: #17643A; }
.form-status.is-error { padding: 12px 14px; border-radius: 8px; background: #FDECEC; color: #9B1C22; }
form button[type="submit"][disabled] { opacity: .65; cursor: progress; }

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

/* ---------- print ---------- */
@media print {
  .site-header .site-nav, .nav-toggle, .hero [data-prev], .hero [data-next], .hero .dot { display: none !important; }
}
