/* ==========================================================================
   enhancements.css: top bar, social links, footer layout, graphic accents
   Loaded after style.css and responsive.css on every page.
   ========================================================================== */

/* ---------- Top utility bar ---------- */
.topbar { background: #0B2238; color: #D6E2EE; font-size: .86rem; }
.topbar-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 20px; padding-block: 6px; min-height: 42px; }
.topbar a { color: #fff; text-decoration: none; }
.topbar a:hover, .topbar a:focus-visible { text-decoration: underline; }
.topbar-contact { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; }
.topbar-contact a { display: inline-flex; align-items: center; }
.topbar .ico { width: 16px; height: 16px; margin-right: 6px; flex: 0 0 16px; }
.topbar .sep { opacity: .45; }

/* ---------- Social links ---------- */
.social-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.social {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255, 255, 255, .12); color: #fff; text-decoration: none;
}
.social svg { width: 18px; height: 18px; fill: currentColor; }
.social:focus-visible { outline: 3px solid #7fe0dc; outline-offset: 2px; }
.social[href]:hover { background: #16A6A1; }
.social[aria-disabled="true"] { opacity: .5; cursor: default; }
.topbar .social { width: 32px; height: 32px; }
.topbar .social svg { width: 16px; height: 16px; }
.footer-social { margin-top: 18px; }
@media (prefers-reduced-motion: no-preference) {
  .social { transition: background .2s ease, transform .2s ease; }
  .social[href]:hover { transform: translateY(-2px); }
}

/* ---------- Header ---------- */
.site-header { box-shadow: 0 1px 0 var(--border); }
.brand-name { white-space: nowrap; font-size: 1.08rem; }
.brand { flex: 0 0 auto; }
.nav-list { gap: 0; }
.nav-link, .dropdown-toggle { font-size: .93rem; padding-inline: .6rem; }
.nav-link[aria-current="page"] { box-shadow: inset 0 -3px 0 #16A6A1; }

/* ---------- Footer ---------- */
.site-footer { background: linear-gradient(180deg, #0B2238 0%, #102A43 100%); }
.footer-grid { grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); gap: 36px; }
.footer-contact h2 { color: #fff; font-size: 1rem; margin-bottom: 12px; }
.footer-contact ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-contact li { color: #C9D9E8; font-size: .95rem; }
.footer-contact a { color: #9ADFDC; text-decoration: none; }
.footer-contact a:hover { text-decoration: underline; }
.footer-contact span[data-email] a { color: #9ADFDC; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .14); }
@media (max-width: 960px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-about { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ---------- Inner-page hero with a graphic backdrop ---------- */
.page-hero {
  background:
    linear-gradient(90deg, #fff 0%, rgba(255, 255, 255, .95) 45%, rgba(255, 255, 255, .55) 100%),
    url("../images/hero/hero-background.jpg") right center / cover no-repeat;
}
@media (max-width: 640px) {
  .page-hero {
    background:
      linear-gradient(rgba(255, 255, 255, .94), rgba(255, 255, 255, .94)),
      url("../images/hero/hero-background.jpg") center / cover no-repeat;
  }
}

/* ---------- Graphic accents ---------- */
.visual-strip figure { background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 14px; margin: 0; box-shadow: var(--shadow); }
.visual-strip img { width: 100%; height: auto; border-radius: 8px; background: #F5F9FC; }
.visual-strip figcaption { margin-top: 10px; font-size: .92rem; color: #334E68; }
.card { border-top: 3px solid transparent; }
.grid-3 .card:nth-child(3n+1) { border-top-color: #16A6A1; }
.grid-3 .card:nth-child(3n+2) { border-top-color: #1769AA; }
.grid-3 .card:nth-child(3n) { border-top-color: #102A43; }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .card { transition: transform .2s ease, box-shadow .2s ease; }
  .card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
}
.portrait-card img { object-fit: cover; }

/* Small screens: keep the top bar compact */
@media (max-width: 600px) {
  .topbar { font-size: .8rem; }
  .topbar-inner { justify-content: center; text-align: center; }
  .topbar-contact { justify-content: center; }
  .topbar .sep { display: none; }
}

/* Narrow phones: let the brand name wrap so the menu button stays on screen */
@media (max-width: 480px) {
  .brand-name { white-space: normal; font-size: .95rem; line-height: 1.15; }
  .brand img { width: 34px; height: 34px; flex-basis: 34px; }
  .brand { gap: 8px; }
  .header-inner { gap: 10px; }
}
@media (max-width: 480px) {
  .site-header .brand { flex: 1 1 0; min-width: 0; max-width: calc(100% - 64px); }
  .brand-text { min-width: 0; }
  .brand-name { overflow-wrap: anywhere; hyphens: auto; }
}

/* ---------- Logo (uploaded emblem) ---------- */
.brand img { width: 50px; height: 50px; flex: 0 0 50px; border-radius: 8px; }
.footer-brand img { width: 52px; height: 52px; background: #fff; border-radius: 10px; padding: 3px; box-sizing: border-box; }
@media (max-width: 480px) {
  .brand img { width: 40px; height: 40px; flex-basis: 40px; }
}
