/* 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;
}

html {
    height: 100%;
}

body {
    /* Use Michroma for the whole site (ensure Google Fonts link for Michroma is included in layout.html) */
    font-family: 'Michroma', 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;
    /* pin footer to the bottom of the viewport on short pages, without affecting taller ones */
    min-height: 100%;
    display: flex;
    flex-direction: column;
}

.page-footer {
    margin-top: auto;
}

/* Set padding to keep content from hitting the edges */
.body-content {
    flex: 1 0 auto;
    display: flex;
    flex-direction: column;
    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: Michroma 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: 18px; /* navbar text size - reduced for Michroma's wider letterforms */
    /* 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: 75px; /* slightly smaller than the 100px navbar height, centers via vertical-align */
}

/* electric violet on hover/focus for the navbar, no underline */
.navbar-inverse .navbar-brand:hover,
.navbar-inverse .navbar-nav > li > a:hover,
.navbar-inverse .navbar-nav > li > a:focus {
    color: #8f00ff;
    text-decoration: none;
}

.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 Michroma 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: 'Michroma', sans-serif;
}

/* Reduce h1 slightly from Bootstrap's 36px default, site-wide */
h1 {
    font-size: 30px;
    margin-bottom: 55px;
}

/* index page hero text: crossfades between rotating sentences, see index.html's script block */
.hero-fade-text {
    transition: opacity 1s ease-in-out;
}

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

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

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

ul {
    font-size: 16px;
    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: 19px;
    }
    :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;
  }
}

/* ===================================================================
   Index page: scroll-driven background sections
   =================================================================== */

/* index page supplies its own layered backgrounds; suppress the static one */
body.page-scroll-bg {
  background-image: none;
}

.scroll-bg-layer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  inset: 0;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 1.1s ease;
  z-index: -1;
  pointer-events: none;
}

.scroll-bg-layer.is-active {
  opacity: 1;
}

.scroll-bg-1 { background-image: url('/static/images/background.png'); }
.scroll-bg-2 { background-image: url('/static/images/background2.jpg'); }
.scroll-bg-3 { background-image: url('/static/images/background3.png'); }

@media (prefers-reduced-motion: reduce) {
  .scroll-bg-layer { transition: none; }
}

.scroll-section {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 60px 0;
}

.scroll-panel {
  max-width: 1280px;
  margin: 0 auto;
  background: rgba(6, 16, 24, 0.55);
  border: 1px solid rgba(159,216,255,0.1);
  border-radius: 12px;
  padding: 56px 64px;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  box-shadow: 0 12px 36px rgba(0,0,0,0.4);
}

.scroll-panel h2 {
  font-size: 2.3rem;
}

.scroll-panel p {
  font-size: 1.25rem;
}

.scroll-panel ul {
  font-size: 1.25rem;
}

.scroll-summary-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 38px;
  margin-top: 38px;
}

.scroll-summary-item h3 {
  color: var(--accent);
  margin-top: 0;
  margin-bottom: 12px;
  font-size: 1.55rem;
}

.scroll-summary-item p {
  margin: 0;
  color: rgba(255,255,255,0.85);
  font-size: 1.2rem;
}

@media (max-width: 767px) {
  .scroll-summary-grid {
    grid-template-columns: 1fr;
  }
  .scroll-panel {
    padding: 28px;
  }
  .scroll-panel h2 {
    font-size: 1.5rem;
  }
}

/* Panoptic panel: text/tiers on top, screenshot preview underneath */
.panoptic-preview-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  margin-top: 28px;
}

.panoptic-preview-text ul {
  margin-top: 0;
}

.panoptic-tier-badges {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin-top: 24px;
  flex-wrap: wrap;
}

.tier-badge,
.tier-badge:link,
.tier-badge:visited {
  display: inline-block;
  padding: 12px 32px;
  border: 1px solid rgba(47,153,206,0.45);
  border-radius: 999px;
  color: #9fd8ff;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  text-decoration: none;
  background: rgba(47,153,206,0.1);
  cursor: pointer;
  animation: badgePulse 3.4s ease-in-out infinite;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease, color .2s ease;
}

.tier-badge:nth-child(2) { animation-delay: .35s; }
.tier-badge:nth-child(3) { animation-delay: .7s; }

.tier-badge:hover,
.tier-badge:focus-visible {
  text-decoration: none;
  transform: translateY(-4px) scale(1.05);
  background: rgba(47,153,206,0.25);
  border-color: rgba(95,227,255,0.85);
  color: #ffffff;
  box-shadow: 0 12px 28px rgba(47,153,206,0.35), 0 0 20px rgba(95,227,255,0.45);
}

@keyframes badgePulse {
  0%, 100% { box-shadow: 0 0 0 rgba(47,153,206,0); }
  50% { box-shadow: 0 0 18px rgba(47,153,206,0.4); }
}

@media (prefers-reduced-motion: reduce) {
  .tier-badge { animation: none; }
}

.panoptic-tier-caption {
  margin-top: 10px;
  font-size: 0.95rem;
  color: rgba(255,255,255,0.7);
}

.panoptic-preview-shots {
  display: flex;
  flex-direction: row;
  gap: 20px;
}

.panoptic-preview-shots .panoptic-shot {
  flex: 1;
}

.panoptic-shot {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(0,0,0,0.5);
  border: 1px solid rgba(159,216,255,0.12);
}

.panoptic-shot img {
  display: block;
  width: 100%;
  height: 280px;
  object-fit: cover;
  object-position: top center;
}

.panoptic-shot-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 6px 10px;
  font-size: 0.78rem;
  background: linear-gradient(0deg, rgba(0,0,0,0.75), rgba(0,0,0,0));
  color: #fff;
}

@media (max-width: 767px) {
  .panoptic-preview-shots {
    flex-direction: column;
  }
  .panoptic-shot img {
    height: 220px;
  }
  .tier-badge {
    padding: 10px 22px;
    font-size: 0.95rem;
  }
}

/* Persistent privacy/cookies link, bottom-right on every page */
.privacy-cog {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 1000;
  width: 54px;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
  border-radius: 50%;
  background: rgba(6,16,24,0.65);
  border: 1px solid rgba(159,216,255,0.18);
  color: #9fd8ff;
  font-size: 2.7rem;
  line-height: 1;
  text-decoration: none;
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.4);
  transition: transform .3s ease, box-shadow .2s ease, color .2s ease, border-color .2s ease, background .2s ease;
}

.privacy-cog:hover,
.privacy-cog:focus-visible {
  transform: rotate(60deg);
  color: #ffffff;
  background: rgba(47,153,206,0.25);
  border-color: rgba(95,227,255,0.6);
  box-shadow: 0 10px 24px rgba(47,153,206,0.35);
  text-decoration: none;
}

@media (prefers-reduced-motion: reduce) {
  .privacy-cog:hover,
  .privacy-cog:focus-visible {
    transform: none;
  }
}

@media (max-width: 480px) {
  .privacy-cog {
    width: 46px;
    height: 46px;
    right: 12px;
    bottom: 12px;
    font-size: 2.25rem;
  }
}
