﻿/* ============================================================
   iSmooth Main Stylesheet — Bundled Production CSS
   Bundled to eliminate render-blocking @import network waterfalls.
   Source partials preserved in css/ directory for reference.
   ============================================================ */

/* --- SECTION: base.css --- */
@font-face {
  font-family: "Lato";
  src: url("/fonts/lato-regular-latin.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Lato";
  src: url("/fonts/lato-600-latin.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Lato";
  src: url("/fonts/lato-700-latin.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --blue: #00457C;
  --blue-bright: #007DB8;
  --navy: #063B63;
  --text: #17212B;
  --text-light: #687580;
  --white: #FFFFFF;
  --off-white: #F7F9FA;
  --grey: #E7EBEF;
  --radius-card: 8px;
  --radius-btn: 6px;
  --space-1: 1px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 24px;
  --space-5: 36px;
  --space-6: 60px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: "Lato", Arial, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.55;
  font-size: 16px;
}

h1, h2, h3, h4 { font-weight: 700; line-height: 1.2; color: var(--text); }
h1 { font-size: 2.5rem; }
h2 { font-size: 1.9rem; }
h3 { font-size: 1.2rem; }
h4 { font-weight: 600; font-size: 1rem; }

p { color: var(--text); }

a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--navy); }

img { max-width: 100%; display: block; }

ul { list-style: none; }

.eyebrow {
  color: var(--blue);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: var(--space-1);
}

.lead {
  color: var(--text-light);
  font-size: 1.05rem;
  max-width: 640px;
}

.section-intro {
  color: var(--text-light);
  font-size: 1.05rem;
  max-width: none;
}

.section-intro .lead {
  max-width: none;
}

.text-center .section-intro,
.text-center .lead {
  max-width: 780px;
  margin-left: auto;
  margin-right: auto;
}

:focus-visible {
  outline: 2px solid var(--blue-bright);
  outline-offset: 2px;
}

@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }
}

/* --- SECTION: layout.css --- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-3);
}

.section { padding: var(--space-6) 0; }
.section-alt { background: var(--off-white); }
.section-dark { background: var(--navy); color: var(--white); }
.section-dark h2, .section-dark .eyebrow { color: var(--white); }
.section-dark p { color: #C7D5E0; }
.section-featured { border-top: 4px solid var(--blue); border-bottom: 4px solid var(--blue); }

.section-intro { margin-bottom: var(--space-4); }
.section-action { margin-top: var(--space-5); }

.hero {
  padding: var(--space-6) 0;
  background: var(--white);
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-5);
  align-items: center;
}
.hero-content { max-width: 560px; }
.hero-actions { display: flex; gap: var(--space-2); margin-top: var(--space-3); flex-wrap: wrap; }

.card-grid {
  display: grid;
  gap: var(--space-3);
  margin-top: var(--space-3);
}
.card-grid-4 { grid-template-columns: repeat(4, 1fr); }
.card-grid-3 { grid-template-columns: repeat(3, 1fr); }

.logo-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: var(--space-3);
  align-items: center;
  margin-top: var(--space-3);
}
.logo-grid img {
  filter: grayscale(100%);
  opacity: 0.75;
  width: 100%;
  height: 60px;
  object-fit: contain;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-2);
  margin-top: var(--space-3);
}
.tag-list li {
  background: var(--white);
  border: 1px solid var(--grey);
  padding: var(--space-1) var(--space-2);
  border-radius: var(--radius-card);
  font-weight: 600;
  font-size: 0.9rem;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}
.tag-list li:hover {
  background: var(--blue);
  border-color: var(--blue);
  color: var(--white);
  transform: translateY(-2px);
}

.cta-section { background: var(--off-white); }
.cta-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: var(--space-4);
  align-items: center;
}

/* Footer */
.site-footer {
  background: var(--navy);
  color: var(--white);
}
.site-footer a { color: var(--white); }
.site-footer a:hover { color: var(--blue-bright); }
.site-footer h4 { color: var(--white); margin-bottom: var(--space-2); }
.site-footer p { color: #C7D5E0; }

.footer-inner {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: var(--space-5);
  padding: var(--space-5) 0 var(--space-4);
}
.footer-brand img { margin-bottom: var(--space-2); }
.footer-brand p { margin-bottom: var(--space-1); }
.footer-links { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); }
.footer-links ul li { margin-bottom: var(--space-1); }
.footer-bottom { padding: var(--space-3) 0; border-top: 1px solid rgba(255,255,255,0.1); }
.footer-bottom p { color: #C7D5E0; }

@media (max-width: 992px) {
  .card-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .card-grid-3 { grid-template-columns: repeat(1, 1fr); }
  .logo-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-media { order: -1; }
  .cta-inner { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-links { grid-template-columns: 1fr 1fr; }
  .card-grid-4, .card-grid-3 { grid-template-columns: 1fr; }
  .logo-grid { grid-template-columns: repeat(2, 1fr); }
  .section { padding: var(--space-5) 0; }
}

/* --- SECTION: components.css --- */
/* =========================================================
BUTTONS
========================================================= */

.btn {
  display: inline-block;
  padding: 12px 22px;
  border-radius: var(--radius-btn);
  font-weight: 700;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.btn-primary {
  background: var(--blue);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--navy);
  color: var(--white);
}

.btn-secondary {
  background: var(--white);
  color: var(--blue);
  border-color: var(--blue);
}

.btn-secondary:hover {
  background: var(--off-white);
}

.section-dark .btn-secondary {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}

/* =========================================================
HEADINGS
========================================================= */

.heading-hero-size {
  font-size: 2.4rem;
}

/* =========================================================
CARDS
========================================================= */

.card {
  background: var(--white);
  border: 1px solid var(--grey);
  border-radius: var(--radius-card);
  padding: var(--space-3);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
  border-color: var(--blue);
}

.card h3 {
  margin-bottom: var(--space-1);
}

.card p {
  color: var(--text-light);
  font-size: 0.95rem;
}

.card-icon {
  margin-bottom: var(--space-2);
}

.card-dark {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.15);
}

.card-dark:hover {
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: 0 6px 18px rgba(255, 255, 255, 0.06);
}

.card-dark h3 {
  color: var(--white);
}

.card-dark p {
  color: #C7D5E0;
}

/* Primary feature cards (What We Supply) */
.card-primary {
  position: relative;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.card-primary:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 24px rgba(0, 69, 124, 0.12);
  border-color: var(--blue);
}

.card-primary .card-icon {
  margin-left: auto;
  margin-right: auto;
  display: block;
  transition: transform 0.2s ease;
}

.card-primary:hover .card-icon {
  transform: scale(1.1);
}

/* =========================================================
MOBILE HERO FIXES
========================================================= */

/* Home & Solutions hero image */
@media (max-width: 768px) {
  .hero-inner {
    flex-direction: column;
  }

  .hero-media {
    order: -1;
    width: 100%;
    margin-bottom: 24px;
  }

  .hero-media img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    object-position: center;
    border-radius: 8px;
  }

  .hero-content {
    width: 100%;
    text-align: left;
  }

  .hero h1 {
    font-size: 1.6rem;
    line-height: 1.3;
  }
}

/* About page hero title over background image */
@media (max-width: 768px) {
  .about-hero,
  .hero-dark {
    padding: 40px 20px;
  }

  .about-hero h1,
  .hero-dark h1 {
    font-size: 1.75rem;
    line-height: 1.35;
    word-break: normal;
    overflow-wrap: break-word;
    max-width: 90%;
  }

  .about-hero .lead,
  .hero-dark .lead {
    font-size: 0.95rem;
    max-width: 95%;
  }
}

/* =========================================================
BRAND LOGOS
========================================================= */

/* Brand logos: grayscale by default, color on hover */
.logo-grid img {
  filter: grayscale(100%);
  opacity: 0.7;
  transition: filter 0.25s ease, opacity 0.25s ease;
}

.logo-grid img:hover {
  filter: grayscale(0%);
  opacity: 1;
}

.logo-grid img:active {
  filter: grayscale(0%);
  opacity: 1;
}

/* =========================================================
BACK TO TOP
========================================================= */

/* Utility control, not a hero/CTA element â€” kept visually
   quiet in shape (no scale-on-scroll), fixed bottom-right,
   hidden until the user scrolls past 500px. A soft white glow
   is layered on top of the drop shadow for visibility against
   busy backgrounds. Markup lives in components/footer.html;
   position/behaviour (incl. footer-overlap avoidance) in main.js. */
.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: var(--blue);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 500;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18), 0 0 14px 2px rgba(255, 255, 255, 0.35);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s, background 0.15s ease, box-shadow 0.2s ease;
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover,
.back-to-top:focus-visible {
  background: var(--navy);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2), 0 0 20px 4px rgba(255, 255, 255, 0.5);
}

.back-to-top:focus-visible {
  outline: 2px solid var(--white);
  outline-offset: 2px;
}

@media (max-width: 600px) {
  .back-to-top {
    width: 48px;
    height: 48px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .back-to-top {
    transition: opacity 0.15s ease, visibility 0.15s;
    transform: none;
  }
}

/* --- SECTION: header.css --- */
/* =========================================================
   HEADER
   ========================================================= */

/* The header is injected by components.js into
   <div id="site-header"></div>. That wrapper div has no
   height of its own â€” it collapses to exactly the height of
   its injected child (.site-header), which gives
   position:sticky on .site-header zero room to actually
   stick (its containing block is exactly as tall as itself).
   display:contents removes the wrapper from the layout box
   tree so .site-header's containing block becomes <body>
   (full page height) instead, letting sticky work correctly
   across the whole page. Do not remove this without also
   changing how components.js injects the header. */
#site-header {
  display: contents;
}

.site-header {
  position: sticky;
  top: 0;
  background: var(--white);
  border-bottom: 1px solid var(--grey);
  z-index: 100;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-3) var(--space-3);
}

.logo {
  flex-shrink: 0;
}

.logo img {
  height: 60px;
  width: auto;
}


/* =========================================================
   MAIN NAVIGATION
   ========================================================= */

.main-nav {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.main-nav ul {
  display: flex;
  gap: var(--space-3);
  flex-shrink: 0;
}

.main-nav a {
  color: var(--text);
  font-weight: 600;
  font-size: 0.95rem;
  white-space: nowrap;
}

.main-nav a:hover {
  color: var(--blue);
}

.main-nav a.btn-primary {
  color: var(--white);
}


/* =========================================================
   REQUEST A QUOTE
   ========================================================= */

.nav-cta {
  margin-left: var(--space-2);
  flex-shrink: 0;
}


/* =========================================================
   SEARCH BUTTON
   ========================================================= */

.search-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 40px;
  height: 40px;

  padding: 0;
  margin: 0 4px 0 8px;

  border: 0;
  background: transparent;

  color: var(--text);

  cursor: pointer;
  flex-shrink: 0;

  transition:
    color 0.2s ease,
    opacity 0.2s ease;
}

.search-toggle svg {
  width: 20px;
  height: 20px;

  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;

  transition: transform 0.2s ease;
}

.search-toggle:hover {
  color: var(--blue);
  opacity: 0.85;
}

.search-toggle:hover svg {
  transform: scale(1.05);
}

.search-toggle:focus-visible {
  outline: 2px solid var(--blue-bright);
  outline-offset: 3px;
  border-radius: 4px;
}


/* =========================================================
   MOBILE NAVIGATION BUTTON
   ========================================================= */

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;

  background: none;
  border: none;

  width: 32px;
  height: 32px;

  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--text);
}


/* =========================================================
   MOBILE NAVIGATION
   ========================================================= */

@media (max-width: 1100px) {

  .main-nav {
    position: fixed;
    top: 76px;
    left: 0;
    right: 0;

    background: var(--white);

    flex-direction: column;
    align-items: flex-start;

    padding: var(--space-3);

    border-bottom: 1px solid var(--grey);

    display: none;
  }

  .main-nav.open {
    display: flex;
  }

  .main-nav ul {
    flex-direction: column;
    gap: var(--space-2);
    width: 100%;
  }

  .nav-cta {
    margin-left: 0;
    margin-top: var(--space-2);
  }

  .nav-toggle {
    display: flex;
  }

  .search-toggle {
    margin: 0;
  }
}

/* --- SECTION: footer.css --- */
/* =========================================================
   FOOTER
   ========================================================= */

/* Matches the same fix applied to #site-header: the footer is
   injected by components.js into <div id="site-footer"></div>,
   which otherwise wraps .site-footer with a same-height parent.
   display:contents removes that wrapper from the layout box
   tree so it never constrains any future positioning (sticky/
   fixed) applied to .site-footer. Not required for the current
   static footer, but kept consistent with header.css. */
#site-footer {
  display: contents;
}

.site-footer {
  background: var(--navy);
  color: var(--white);
}

.site-footer a {
  color: var(--white);
}

.site-footer a:hover {
  color: var(--blue-bright);
}

.site-footer h4 {
  color: var(--white);
  margin-bottom: var(--space-2);
}

.site-footer p {
  color: #C7D5E0;
}

/* Small left gap on the footer container at all breakpoints.
   Scoped to .site-footer .container so it never touches the
   global .container class used by header/page sections. */
.site-footer .container {
  padding-left: calc(var(--space-2) + 4px);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.2fr 2fr;
  gap: var(--space-5);

  padding: var(--space-5) 0 var(--space-4);
}

.footer-brand img {
  margin-bottom: var(--space-2);
}

.footer-brand p {
  margin-bottom: var(--space-1);
}

.footer-contact a {
  font-weight: 600;
}

/* Social nav */
.footer-social {
  margin-top: var(--space-3);
}

.footer-social-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: var(--space-1);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.social-nav {
  display: flex;
  gap: var(--space-2);
  list-style: none;
  padding: 0;
  margin: 0;
}

.social-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.social-nav a:hover {
  background: var(--blue-bright);
  border-color: var(--blue-bright);
  transform: translateY(-2px);
}

.social-nav img {
  width: 18px;
  height: 18px;
  filter: brightness(0) invert(1);
}

/* Link columns */
.footer-links {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: var(--space-4);
}

.footer-links ul li {
  margin-bottom: var(--space-1);
}

/* Bottom bar */
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-2);

  padding: var(--space-3) 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
  color: #C7D5E0;
  margin: 0;
}

.footer-bottom-links {
  display: flex;
  gap: var(--space-3);
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-bottom-links a {
  font-size: 0.9rem;
  color: #C7D5E0;
}

.footer-bottom-links a:hover {
  color: var(--blue-bright);
}


@media (max-width: 768px) {

  .footer-inner {
    grid-template-columns: 1fr;
  }

  .footer-links {
    grid-template-columns: 1fr 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

}

/* --- SECTION: search.css --- */
/* =========================================================
   SEARCH OVERLAY
   ========================================================= */

.search-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;

  visibility: hidden;
  opacity: 0;

  transition:
    opacity 0.2s ease,
    visibility 0.2s ease;
}

.search-overlay.is-open {
  visibility: visible;
  opacity: 1;
}

.search-overlay-backdrop {
  position: absolute;
  inset: 0;

  background: rgba(6, 59, 99, 0.28);
  backdrop-filter: blur(3px);
}

.search-panel {
  position: relative;

  width: min(760px, calc(100% - 32px));

  margin: 90px auto 0;

  background: var(--white);

  border: 1px solid var(--grey);
  border-radius: 8px;

  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.16);

  transform: translateY(-12px);
  transition: transform 0.2s ease;
}

.search-overlay.is-open .search-panel {
  transform: translateY(0);
}

.search-panel-inner {
  padding: 24px;
}


/* =========================================================
   SEARCH HEADER
   ========================================================= */

.search-header {
  display: flex;
  align-items: center;
  justify-content: space-between;

  margin-bottom: 20px;
}

.search-header h2 {
  margin: 0;
  font-size: 1.35rem;
}


/* =========================================================
   CLOSE BUTTON
   ========================================================= */

.search-close {
  position: relative;

  width: 36px;
  height: 36px;

  padding: 0;

  border: 0;
  border-radius: 6px;

  background: transparent;

  cursor: pointer;
}

.search-close span {
  position: absolute;

  width: 20px;
  height: 1.5px;

  top: 50%;
  left: 50%;

  background: var(--text);

  transform-origin: center;
}

.search-close span:first-child {
  transform: translate(-50%, -50%) rotate(45deg);
}

.search-close span:last-child {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.search-close:hover {
  background: var(--off-white);
}

.search-close:focus-visible {
  outline: 2px solid var(--blue-bright);
  outline-offset: 2px;
}


/* =========================================================
   SEARCH INPUT
   ========================================================= */

.search-input-wrap {
  position: relative;

  display: flex;
  align-items: center;
}

.search-input-icon {
  position: absolute;
  left: 16px;

  width: 20px;
  height: 20px;

  fill: none;
  stroke: var(--text-light);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;

  pointer-events: none;
}

.search-input-wrap input {
  width: 100%;

  min-height: 54px;

  padding: 0 48px;

  border: 1px solid var(--grey);
  border-radius: var(--radius-btn);

  background: var(--white);

  color: var(--text);

  font: inherit;
  font-size: 1rem;

  outline: none;

  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease;
}

.search-input-wrap input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(0, 69, 124, 0.08);
}

.search-input-wrap input::placeholder {
  color: var(--text-light);
}


/* Clear */

.search-input-clear {
  position: absolute;
  right: 12px;

  width: 30px;
  height: 30px;

  border: 0;
  border-radius: 50%;

  background: var(--off-white);

  color: var(--text-light);

  font-size: 20px;
  line-height: 1;

  cursor: pointer;
}

.search-input-clear:hover {
  color: var(--text);
}


/* =========================================================
   LIVE RESULTS
   ========================================================= */

.search-live-results {
  margin-top: 16px;
}

.search-live-results:empty {
  display: none;
}

.search-result {
  display: block;

  padding: 14px 16px;

  border: 1px solid transparent;
  border-bottom-color: var(--grey);

  color: inherit;

  transition:
    background 0.15s ease,
    border-color 0.15s ease;
}

.search-result:first-child {
  border-top-left-radius: 6px;
  border-top-right-radius: 6px;
}

.search-result:last-child {
  border-bottom-color: transparent;
  border-bottom-left-radius: 6px;
  border-bottom-right-radius: 6px;
}

.search-result:hover {
  background: var(--off-white);
  border-color: var(--grey);
}

.search-result-type {
  display: block;

  margin-bottom: 4px;

  color: var(--blue);

  font-size: 0.72rem;
  font-weight: 700;

  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.search-result-title {
  display: block;

  margin-bottom: 4px;

  color: var(--text);

  font-size: 1rem;
  font-weight: 700;
}

.search-result-description {
  display: block;

  color: var(--text-light);

  font-size: 0.9rem;
}

.search-no-results {
  padding: 24px 12px;

  color: var(--text-light);

  text-align: center;
}


/* =========================================================
   SEARCH FOOTER
   ========================================================= */

.search-panel-footer {
  display: flex;
  justify-content: space-between;

  margin-top: 16px;

  color: var(--text-light);

  font-size: 0.78rem;
}


/* =========================================================
   ACCESSIBILITY
   ========================================================= */

.sr-only {
  position: absolute;

  width: 1px;
  height: 1px;

  padding: 0;
  margin: -1px;

  overflow: hidden;

  clip: rect(0, 0, 0, 0);

  white-space: nowrap;

  border: 0;
}

/* Skip link: hidden until keyboard focus, then shown top-left */
.skip-link:focus {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 10000;
  width: auto;
  height: auto;
  margin: 0;
  padding: 10px 16px;
  overflow: visible;
  clip: auto;
  white-space: normal;
  background: #FFFFFF;
  color: #00457C;
  border: 2px solid #00457C;
  border-radius: 6px;
  font-weight: 700;
  text-decoration: none;
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 768px) {

  .search-panel {
    width: calc(100% - 20px);
    margin-top: 64px;
  }

  .search-panel-inner {
    padding: 18px;
  }

  .search-panel-footer {
    display: none;
  }

}

/* =========================================================
   SEARCH RESULTS PAGE
   ========================================================= */

.search-page {
  padding: var(--space-6) 0;
}

.search-page-header {
  max-width: 720px;
  margin-bottom: var(--space-4);
}

.search-page-header h1 {
  margin-bottom: var(--space-2);
}

.search-page-intro {
  color: var(--text-light);
  font-size: 1.05rem;
}


/* =========================================================
   SEARCH FORM
   ========================================================= */

.search-page-form {
  max-width: 900px;
  margin-bottom: var(--space-5);
}

.search-page-input-wrap {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.search-page-input-wrap .search-input-icon {
  position: absolute;
  width: 20px;
  height: 20px;

  fill: none;
  stroke: var(--text-light);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;

  pointer-events: none;
}

.search-page-input-wrap {
  position: relative;
}

.search-page-input-wrap input {
  flex: 1;

  min-height: 50px;

  padding: 0 16px 0 48px;

  border: 1px solid var(--grey);
  border-radius: var(--radius-btn);

  background: var(--white);

  color: var(--text);

  font: inherit;

  outline: none;
}

.search-page-input-wrap input:focus {
  border-color: var(--blue);

  box-shadow:
    0 0 0 3px rgba(0, 69, 124, 0.08);
}


/* =========================================================
   RESULTS HEADER
   ========================================================= */

.search-results-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;

  gap: var(--space-2);

  margin-bottom: var(--space-2);

  border-bottom: 1px solid var(--grey);

  padding-bottom: var(--space-2);
}

.search-results-header h2 {
  font-size: 1.25rem;
}

#search-query {
  color: var(--blue);
}

#search-result-count {
  color: var(--text-light);
  font-size: 0.9rem;
}


/* =========================================================
   RESULT LIST
   ========================================================= */

.search-page-results {
  max-width: 900px;
}

.search-page-results .search-result {
  padding: 20px 4px;

  border-bottom: 1px solid var(--grey);
}

.search-page-results .search-result:hover {
  background: transparent;
  border-color: var(--grey);
}

.search-page-results .search-result-title {
  font-size: 1.1rem;
}

.search-page-results .search-result-description {
  max-width: 700px;
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 600px) {

  .search-page {
    padding: var(--space-5) 0;
  }

  .search-page-input-wrap {
    flex-direction: column;
    align-items: stretch;
  }

  .search-page-input-wrap input {
    width: 100%;
  }

  .search-page-input-wrap .btn {
    width: 100%;
  }

  .search-results-header {
    align-items: flex-start;
    flex-direction: column;
  }

}


/* --- SECTION: shared answer-first summary tables --- */
.summary-section {
  background: var(--white);
  border-top: 1px solid var(--grey);
}

.summary-section-header {
  margin-bottom: 24px;
}

.summary-section-header h2 {
  margin: 6px 0 8px;
}

.summary-collapse {
  background: var(--white);
  border: 1px solid var(--grey);
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.summary-collapse.is-expanded {
  border-color: var(--blue);
  box-shadow: 0 6px 20px rgba(0, 69, 124, 0.08);
}

.summary-collapse-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  background: var(--white);
  border: none;
  padding: 20px 24px;
  text-align: left;
  cursor: pointer;
  gap: 20px;
  font-family: inherit;
  transition: background-color 0.18s ease;
}

.summary-collapse-btn:hover {
  background: #F8FAFC;
}

.summary-collapse-btn:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: -2px;
}

.summary-collapse-info {
  flex: 1;
  min-width: 0;
}

.summary-collapse-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--blue);
  background: #EBF4FA;
  padding: 3px 10px;
  border-radius: 4px;
  margin-bottom: 6px;
}

.summary-collapse-title {
  margin: 0 0 4px;
  font-size: 1.25rem;
  color: var(--text);
  line-height: 1.3;
}

.summary-collapse-subtitle {
  margin: 0;
  font-size: 0.92rem;
  color: var(--text-light);
  line-height: 1.5;
}

.summary-collapse-action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  background: #EBF4FA;
  color: var(--blue);
  border-radius: 6px;
  font-size: 0.88rem;
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background-color 0.18s ease, color 0.18s ease;
}

.summary-collapse-btn:hover .summary-collapse-action {
  background: var(--blue);
  color: var(--white);
}

.summary-collapse-chevron {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  transition: transform 0.25s ease;
}

.summary-collapse.is-expanded .summary-collapse-chevron {
  transform: rotate(180deg);
}

.summary-collapse-body {
  padding: 0 24px 24px;
  border-top: 1px solid var(--grey);
}

.summary-collapse.is-collapsed .summary-collapse-body,
.summary-collapse-body[hidden] {
  display: none !important;
}

.summary-collapse-body

.summary-table-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--grey);
  border-radius: var(--radius-card);
  background: var(--white);
}

.summary-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  text-align: left;
  min-width: 720px;
}

.summary-table th,
.summary-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--grey);
  vertical-align: top;
  line-height: 1.5;
}

.summary-table thead th {
  background: var(--blue);
  color: var(--white);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
}

.summary-table tbody th {
  font-weight: 700;
  color: var(--text);
  background: var(--off-white);
  border-right: 1px solid var(--grey);
  width: 22%;
}

.summary-table tbody tr:last-child th,
.summary-table tbody tr:last-child td {
  border-bottom: none;
}

.summary-table tbody tr:hover td,
.summary-table tbody tr:hover th {
  background: #F0F6FA;
}

@media (max-width: 768px) {
  .summary-table th,
  .summary-table td {
    padding: 11px 12px;
    font-size: 0.85rem;
  }
}
