/* Panoptic enhancements: accent, cards, hover glow, entrance animation */
:root {
  --accent: #2f99ce;
}

/* Hero tweaks */
.panoptic-hero h1 { letter-spacing: 0.5px; font-weight:700; }
.panoptic-hero .lead { color: rgba(255,255,255,0.92); font-size:1.15rem; }

/* Card grid for tiered offerings */
.tier-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  margin-top: 12px;
  align-items: start;
}

/* Individual tier card */
.tier-card {
  background: linear-gradient(180deg, rgba(47,153,206,0.04), rgba(255,255,255,0.01));
  border: 1px solid rgba(159,216,255,0.08);
  border-radius: 10px;
  padding: 18px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.38);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  color: inherit;
}

/* hover / focus pop + glow */
.tier-card:hover,
.tier-card:focus-within {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(47,153,206,0.14), 0 6px 18px rgba(0,0,0,0.45);
  border-color: rgba(47,153,206,0.25);
}

/* visuals inside card */
.tier-card h4 {
  margin-top: 0;
  color: var(--accent);
  font-weight:600;
}
.tier-card p { margin: 0.3rem 0; color: rgba(255,255,255,0.9); }

/* CTA button */
.tier-cta {
  display:inline-block;
  margin-top:10px;
  padding:8px 14px;
  background: var(--accent);
  color:#fff;
  border-radius:6px;
  text-decoration:none;
  font-weight:600;
  transition: background .12s ease, transform .12s ease;
}
.tier-cta:hover { background:#257fb0; transform: translateY(-2px); }

/* make the preview thumbnails punchier */
.img-thumbnail {
  box-shadow: 0 8px 28px rgba(0,0,0,0.55);
  border: none;
}

/* modal image glow */
#imgModalImg { box-shadow: 0 18px 48px rgba(0,0,0,0.6); border-radius:6px; }

/* non-responsive static tier image styling (keeps earlier fixed size but looks cleaner) */
.panoptic-tiers {
  display:inline-block;
  width:500px;
  height:auto;
  box-shadow: 0 12px 36px rgba(0,0,0,0.5);
  border-radius: 6px;
  margin-top: 12px;
}

/* entrance animation */
.pop-in { animation: popIn .36s ease both; }
@keyframes popIn {
  from { opacity: 0; transform: translateY(8px) scale(.995); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* responsive fallback - keep static image visible on smaller screens */
@media (max-width: 576px) {
  .panoptic-tiers { width: 320px; }
}
/* navbar height used to vertically center nav items (adjust if you change .brand-logo) */
:root {
    --nav-height: 100px;
}

body {
    /* Use Abel for the whole site (ensure Google Fonts link for Abel is included in layout.html) */
    font-family: 'Abel', sans-serif;

    /* background image file: place your image at static/images/background.png */
    background-image: url('/static/images/background.png');
    background-size: cover; /* cover the viewport */
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed; /* use 'scroll' on mobile if needed */
    padding-top: 0; /* removed fixed-nav offset so sticky navbar won't cause double spacing */
    padding-bottom: 20px;
    /* graceful fallback color while the image loads or if it is missing */
    background-color: #111;
}

/* Set padding to keep content from hitting the edges */
.body-content {
    padding-left: 15px;
    padding-right: 15px;
    /* subtle white panel for readability over the background */
    /*    background-color: rgba(255,255,255,0.92); */
    border-radius: 4px;
    padding-top: 20px;
    padding-bottom: 20px;
    /* ensure all content text is white and remains readable */
    color: #ffffff;
    text-shadow: 0 1px 2px rgba(0,0,0,0.6);
}

/* link colors inside the content area */
.body-content a,
.body-content a:link,
.body-content a:visited {
    color: #9fd8ff;
}
.body-content a:hover,
.body-content a:focus {
    color: #ffffff;
    text-decoration: underline;
}

/* Set width on the form input elements since they're 100% wide by default */
input,
select,
textarea {
    max-width: 280px;
}

/* styles for validation helpers */
.field-validation-error {
    color: #b94a48;
}

.field-validation-valid {
    display: none;
}

input.input-validation-error {
    border: 1px solid #b94a48;
}

input[type="checkbox"].input-validation-error {
    border: 0 none;
}

.validation-summary-errors {
    color: #b94a48;
}

.validation-summary-valid {
    display: none;
}

.brand-logo {
    height: 100px; /* adjust to fit your navbar */
    display: inline-block;
    vertical-align: middle;
    margin-right: 8px;
}

.brand-text {
    display: inline-block;
    vertical-align: middle;
    color: #fff; /* matches navbar-inverse text color */
    font-weight: 600;
}

@media (max-width: 480px) {
  /* Increase logo size on small screens and keep navbar height consistent */
  :root { --nav-height: 60px; }

  .brand-logo,
  .navbar-inverse .brand-logo,
  .navbar-inverse .navbar-brand img {
    height: 48px !important;
    margin-right: 8px;
  }

  .navbar-inverse {
    min-height: var(--nav-height);
  }

  /* Keep nav links vertically aligned with the taller logo */
  .navbar-inverse .navbar-brand,
  .navbar-inverse .navbar-nav > li > a {
    line-height: var(--nav-height);
  }
}

/* Navbar gradient: left black -> reach #000b17 at 50% and keep #000b17 to the right */
.navbar-inverse {
  background: linear-gradient(90deg, #000000 0%, #000b17 50%, #000b17 100%);
  border-color: transparent;
  min-height: var(--nav-height);
}

/* Ensure collapsed menu and dropdowns use the same gradient */
.navbar-inverse .navbar-collapse,
.navbar-inverse .navbar-nav .open .dropdown-menu {
  background: linear-gradient(90deg, #000000 0%, #000b17 50%, #000b17 100%);
  border-color: transparent;
}

/* Force the gradient if Bootstrap specificity overrides it */
.navbar.navbar-inverse {
  background-image: linear-gradient(90deg, #000000 0%, #000b17 50%, #000b17 100%) !important;
}

/* Navbar font: Abel already applied globally via body */
.navbar-inverse,
.navbar-inverse .navbar-brand,
.navbar-inverse .navbar-nav > li > a {
    font-family: inherit;
}

/* navbar text color */
.navbar-inverse .navbar-brand,
.navbar-inverse .navbar-nav > li > a {
    color: #ffffff;
    text-decoration: none; /* ensure default is no underline */
    font-size: 25px; /* navbar text size */
    /* vertically center nav items inside the navbar */
    line-height: var(--nav-height);
    padding-top: 0;
    padding-bottom: 0;
}

/* If the brand contains an image, ensure it doesn't push the line-height alignment */
.navbar-inverse .navbar-brand img,
.navbar-inverse .brand-logo {
    display: inline-block;
    vertical-align: middle;
    height: var(--nav-height);
}

/* underline links on hover/focus for the navbar */
.navbar-inverse .navbar-brand:hover,
.navbar-inverse .navbar-nav > li > a:hover,
.navbar-inverse .navbar-nav > li > a:focus {
    color: #9fd8ff;
    text-decoration: underline;
}

.navbar-inverse .navbar-toggle .icon-bar {
    background-color: #ffffff;
}

/* Ensure collapsed/mobile menu uses same background */
.navbar-inverse .navbar-collapse,
.navbar-inverse .navbar-nav .open .dropdown-menu {
    background-color: #061018;
}

/* Ensure Abel is applied site-wide (explicit selectors for headings and key containers) */
html,
body,
.body-content,
h1, h2, h3, h4, h5, h6,
p,
a,
button,
input,
select,
textarea,
.navbar-inverse .navbar-brand,
.navbar-inverse .navbar-nav > li > a {
    font-family: 'Abel', sans-serif;
}

/* Enlarge h2 headings site-wide */
h2 {
    font-size: 32px;
    line-height: 1.25;
    margin-top: 1em;
    margin-bottom: 0.5em;
}

h3 {
    font-size: 28px;
    line-height: 1.25;
    margin-top: 1em;
    margin-bottom: 0.5em;
}

p {
    font-size: 20px;
    line-height: 1.25;
    margin-top: 1em;
    margin-bottom: 0.5em;
}

ul {
    font-size: 20px;
    line-height: 1.25;
    margin-top: 1em;
    margin-bottom: 0.5em;
}
/* Responsive adjustment for h2 to avoid overflow on small screens */
@media (max-width: 767px) {
    h2 {
        font-size: 24px;
    }
    :root { --nav-height: 50px; } /* smaller nav height on mobile */
    .navbar-inverse {
        min-height: var(--nav-height);
    }
    .navbar-inverse .navbar-brand,
    .navbar-inverse .navbar-nav > li > a {
        line-height: normal;
        padding-top: 15px;
        padding-bottom: 15px;
        font-size: 16px;
    }
    .navbar-inverse .brand-logo,
    .navbar-inverse .navbar-brand img {
        height: 22px;
    }
}

/* Make the top navbar sticky instead of fixed so it "sticks" as the page scrolls */
.navbar-fixed-top {
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 1030; /* same stacking context as bootstrap fixed nav */
  width: 100%;
  /* optional: slight backdrop to improve contrast when content scrolls under it */
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  background-clip: padding-box;
}

/* If you previously used spacing to offset a fixed navbar, adjust content spacing here.
   Keep .body-content padding-top or per-page margins as needed. */

/* Services grid: 2x2 layout (two across the top, two across the bottom) */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* two columns */
  gap: 24px;
  margin-top: 20px;
  align-items: start;
}

/* Individual service card */
.service-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 6px 16px rgba(0,0,0,0.45);
  color: inherit;
  min-height: 180px;
  display: flex;
  flex-direction: column;

  /* transition so hover glow is smooth */
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}

/* hover glow: subtle lift + colored glow using accent */
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(47,153,206,0.12), 0 6px 16px rgba(0,0,0,0.5);
  filter: drop-shadow(0 10px 18px rgba(47,153,206,0.10));
}

.service-card h3 {
  margin-top: 0;
  margin-bottom: 12px;
  font-size: 1.25rem;
  font-weight: 600;
}

/* Make nested lists slightly smaller and indented */
.service-card ul {
  margin: 0;
  padding-left: 1.2rem;
}

.service-card ul ul {
  padding-left: 1rem;
  margin-top: 6px;
  font-size: 0.95em;
}

.service-summary {
  color: rgba(255,255,255,0.75);
  margin: 0 0 12px 0;
}

.service-toggle {
  align-self: flex-start;
  background: none;
  border: 1px solid rgba(47,153,206,0.4);
  color: var(--accent);
  border-radius: 6px;
  padding: 6px 12px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s ease, color .15s ease;
}

.service-toggle:hover {
  background: rgba(47,153,206,0.12);
}

.service-details {
  margin-top: 14px;
}

/* Responsive: collapse to single column on narrow screens */
@media (max-width: 767px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
}
