/* ============================================================================
   Industry & vertical page dark theme.
   Loaded by the ~620 industry index + per-service vertical pages
   (roofing/index.html, electrical/ai-agents.html, …) via:
       <link rel="stylesheet" href="../css/industry-dark.css">
   Brings them in line with the homepage (index.html + homepage-dark.css):
   #0A0A0A body, white text, dark surfaces, dark glassy nav, inverted logo/glyphs.

   Notes:
   - The hero (.hero-with-video) is already dark via css/hero-video.css — not touched
     here, and its higher-specificity rules win for hero headings/chips.
   - #contact is kept WHITE on purpose, exactly like the homepage, so its form stays
     readable; its heading + subtext are re-darkened below to avoid white-on-white.
   - Scoped under body.body where it matters so the single-class base rules in
     qeystone-co-final.webflow.css are reliably overridden. Only pages that link this
     file are affected; the light top-level marketing pages are untouched.
   ============================================================================ */

:root { --qs-violet: #4423FD; }

/* ---------- Page chrome ---------- */
/* Covers every body variant the export uses: .body (industry/vertical + most
   top-level pages), .body-2 (style-guide), .body-3 (licenses), .body-4 (changelog),
   and the bare <body> on 401/404/detail_category. Only pages that link this file
   are affected. */
body,
body.body,
body.body-2,
body.body-3,
body.body-4,
body.body-5 {
  background-color: #0A0A0A;
  color: #FFFFFF;
}
/* Decorative light gradient wash the Webflow export ships at the top. */
body .gradient-background { display: none !important; }

/* ---------- Navigation (markup shared with the homepage) ---------- */
.navbar-logo-left-container.shadow-three,
.navbar-logo-left-container.w-nav {
  background-color: transparent !important;
  box-shadow: none !important;
}
/* Black SVG wordmark -> white */
.navbar-brand-2 img { filter: invert(1) brightness(2); }
/* Nav text links + dropdown toggles */
.nav-link-4,
.nav-dropdown-toggle { color: #fff !important; }
/* Dropdown menu surface (Services / Industries) */
.nav-dropdown-list.w-dropdown-list {
  background-color: rgba(20, 20, 20, 0.92) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 12px;
}
.nav-dropdown-link { color: rgba(255, 255, 255, 0.82) !important; background-color: transparent !important; }
.nav-dropdown-link:hover { color: #fff !important; background-color: rgba(255, 255, 255, 0.06) !important; }
/* Hamburger + close glyphs (black assets) -> white */
.div-block-53 .image-28,
.image-28 { filter: invert(1) brightness(2); }
/* "Let's Talk" nav CTA -> brand violet (same as homepage; not a content button) */
.c2a-button { background-color: var(--qs-violet) !important; border: 1px solid var(--qs-violet) !important; }
.c2a-button .text-block-5 { color: #fff !important; }

/* ---------- Nav hover / active: PURPLE-BLUE PILL (not white) ----------
   Base CSS gives .nav-link-4:hover and .nav-link-4.w--current a WHITE pill
   background; combined with white nav text that's invisible on a dark page.
   Replace the pill fill with brand violet so the white label stays legible. */
.nav-link-4:hover,
.nav-dropdown-toggle:hover {
  color: #fff !important;
  background-color: var(--qs-violet) !important;
  border-radius: 999px !important;
}
.nav-link-4.w--current {
  color: #fff !important;
  background-color: var(--qs-violet) !important;
  border-radius: 999px !important;
}

/* ---------- Body copy (mid-page sections) ---------- */
/* Headings inherit no colour in base, but several are forced to --black-100; flip the
   forced ones white. (#contact re-darkens its own heading further down.) */
.heading-29,
.heading-24,
.heading-7,
.title,
.count { color: #FFFFFF; }
/* Accent span used in section headings */
.text-span-18 { color: var(--qs-violet); }
/* Secondary / supporting text (was --black-60 / #1b1d1e99) */
.para-txt,
.subtext,
.descp,
.text-block-31 { color: #F0F0F0; }

/* Style-guide page: base sets .styleguide-section text to near-black -> flip white. */
.styleguide-section { color: #FFFFFF; }

/* ---------- Cards & surfaces ---------- */
/* Service / case-study / blog cards (white -> dark surface) */
.card-1,
.card-2,
.card-3,
.card-4 {
  background-color: #161616;
  border: 1px solid #2A2A2A;
}
/* "How it works" step cards on the service pages — premium editorial restyle.
   (.excellence is used only on the 552 service pages, so this is fully scoped.) */
.excellence {
  background: rgba(255, 255, 255, 0.04);
  border: none;
  border-left: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 4px;
  padding: 32px;
}
/* Drop the icon (direct-child <img>) entirely */
.excellence > img { display: none; }
/* Larger, bolder card title — scoped to .excellence so the #grow-services
   carousel card titles (also .heading-7) are NOT affected. */
.excellence .heading-7 { font-weight: 700; font-size: 1.3rem; }
/* Thin divider between the stat counters */
.count-sec-divider { background-color: #2A2A2A; }

/* ---------- Pills / tags (.link-block-2) ----------
   In the hero, css/hero-video.css styles these (higher specificity) and wins.
   This is the fallback for any .link-block-2 outside the hero. */
.link-block-2 {
  background-color: #1A1A1A;
  border: 1px solid #333;
  color: #FFFFFF;
}
.link-block-2 > div { color: #FFFFFF; }

/* ---------- #contact — kept WHITE, matching the homepage ---------- */
#contact.section-11,
#contact {
  background-color: #FFFFFF !important;
  color: #1A1A2E;
}
/* Re-assert dark text inside the white contact section (overrides the white-text
   rules above so the heading + subtext don't vanish on white). */
#contact .heading-29 { color: #1A1A2E; }
#contact .subtext { color: rgba(26, 26, 46, 0.62); }

/* ---------- Footer (markup shared with the homepage) ---------- */
.footer {
  background-color: #0A0A0A;
  color: #fff;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.footer .footer-column-1 img[src*="qeystone-wordmark-black"] { filter: invert(1) brightness(2); }
.footer .footer-social-icon img { filter: invert(1) brightness(2); }
.footer .footer-social-icon {
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  transition: background-color 200ms ease;
}
.footer .footer-social-icon:hover { background-color: rgba(255, 255, 255, 0.1); }
.footer .text-block-32,
.footer .title,
.footer .navigation-link.for-footer .nav-text { color: #fff; }
.footer .nav-text.second { color: var(--qs-violet); }
.footer .text-block-32 { color: rgba(255, 255, 255, 0.62); }

/* ============================================================================
   "How We Grow {Industry}" — service-cards carousel injected on every vertical /
   industry page (id="grow-services"). Mirrors the homepage #services carousel, but
   re-scoped here because the homepage's rules live in homepage-dark.css (not loaded
   on these pages). Background videos are lazy: data-src is swapped to src by the
   inline IntersectionObserver near </body>. Scoped to #grow-services so it never
   touches the existing #services icon grid on the industry index pages.
   ============================================================================ */
#grow-services { padding-top: 120px; padding-bottom: 40px; }
#grow-services .grow-heading-div { margin-bottom: 8px; text-align: center; }

#grow-services .services-carousel {
  margin-top: 56px;
  overflow-x: auto;
  overflow-y: hidden;
  cursor: grab;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x pan-y;
}
#grow-services .services-carousel::-webkit-scrollbar { display: none; }
#grow-services .services-carousel.is-dragging { cursor: grabbing; }
#grow-services .services-carousel.is-dragging .card-1 { pointer-events: none; }

/* grid -> horizontal flex track (overrides base + tablet grid rules) */
#grow-services .creative-mind-wrapper {
  display: flex !important;
  flex-wrap: nowrap;
  width: max-content;
  margin-top: 0;
  gap: 20px;
  grid-column-gap: 20px;
  grid-row-gap: 20px;
}

/* Card: background video fills it; title + description pinned to the bottom. */
#grow-services .card-1 {
  position: relative;
  isolation: isolate;
  cursor: pointer;
  text-decoration: none;
  flex: 0 0 280px;
  width: 280px;
  min-height: 320px;
  padding: 24px !important;
  border: 0 !important;
  border-radius: 16px !important;
  background-color: var(--card-bg, #14091f) !important;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 8px;
  transition: transform 250ms ease, box-shadow 250ms ease;
}
#grow-services .card-1:hover { transform: translateY(-4px); box-shadow: 0 18px 44px rgba(0, 0, 0, 0.5); }

/* 8 accent fallbacks (shown before/behind the video); repeat every 8 for the clone loop */
#grow-services .creative-mind-wrapper .card-1:nth-child(8n+1) { --card-bg: #1a0a2e; }
#grow-services .creative-mind-wrapper .card-1:nth-child(8n+2) { --card-bg: #0a1628; }
#grow-services .creative-mind-wrapper .card-1:nth-child(8n+3) { --card-bg: #0d1f1a; }
#grow-services .creative-mind-wrapper .card-1:nth-child(8n+4) { --card-bg: #1c1000; }
#grow-services .creative-mind-wrapper .card-1:nth-child(8n+5) { --card-bg: #0a0d1f; }
#grow-services .creative-mind-wrapper .card-1:nth-child(8n+6) { --card-bg: #1a0f00; }
#grow-services .creative-mind-wrapper .card-1:nth-child(8n+7) { --card-bg: #0f1a0a; }
#grow-services .creative-mind-wrapper .card-1:nth-child(8n+8) { --card-bg: #1a0a14; }

#grow-services .div-block-196 { position: absolute; inset: 0; width: auto; height: auto; overflow: hidden; }
#grow-services .card-video,
#grow-services .card-iframe {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; border: none; z-index: 0; pointer-events: none;
}
/* Flat dark scrim so the bottom text always reads over the video. */
#grow-services .card-1::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: rgba(0, 0, 0, 0.45); pointer-events: none;
}
#grow-services .heading-7,
#grow-services .text-block-31 { position: relative; z-index: 2; }
#grow-services .small-card { width: 100%; gap: 4px; }
#grow-services .heading-7 { margin: 0; color: #fff; }
#grow-services .text-block-31 { margin: 0; color: rgba(255, 255, 255, 0.85); }

/* ============ CATEGORY-HUB grid (12 category hub pages) ============ */
.category-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 48px; }
.category-card { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 24px; background-color: #161616; border: 1px solid #2A2A2A; border-radius: 14px; text-decoration: none; transition: transform .2s ease, border-color .2s ease, background-color .2s ease; }
.category-card:hover { transform: translateY(-3px); border-color: rgba(255,255,255,.28); background-color: #1c1c1c; }
.category-card .cat-card-name { color: #fff; font-size: 19px; font-weight: 600; }
.category-card .cat-card-arrow { color: var(--qs-violet); font-size: 18px; }
@media (max-width: 991px) { .category-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .category-grid { grid-template-columns: 1fr; } }

/* ============ SERVICE-PAGE components (/services/*.html) ============ */
.svc-included { list-style: none; margin: 28px auto 0; padding: 0; max-width: 680px; text-align: left; }
.svc-included li { position: relative; padding: 16px 0 16px 26px; border-top: 1px solid rgba(255,255,255,0.08); color: #F0F0F0; font-size: 17px; line-height: 1.55; }
.svc-included li:first-child { border-top: none; }
.svc-included li::before { content: ""; position: absolute; left: 0; top: 25px; width: 12px; height: 2px; background-color: var(--qs-violet); }
.svc-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: 36px; text-align: left; }
.svc-step-num { display: block; font-size: 2.5rem; font-weight: 800; line-height: 1; color: rgba(255,255,255,0.22); margin-bottom: 12px; }
.svc-step p { margin: 0; color: #F0F0F0; font-size: 16px; line-height: 1.55; }
@media screen and (max-width: 767px) { .svc-steps { grid-template-columns: 1fr; } }

/* ============ .svc-page typography & spacing (/services/*.html only) ============ */
.svc-page .home-about-section { padding-top: 80px; padding-bottom: 80px; }
.svc-page .heading-h3 { font-size: 2.5rem; letter-spacing: -0.02em; line-height: 1.15; }
.svc-page .heading-h3 em,
.svc-page .heading-29 em { font-family: "Instrument Serif", serif; font-style: italic; font-weight: 400; color: var(--qs-violet); }
.svc-page .subtext { max-width: 680px; margin-left: auto; margin-right: auto; line-height: 1.8; font-size: 1.05rem; }
.svc-page .svc-step-num { font-size: 4rem; opacity: 0.15; letter-spacing: -0.04em; color: #fff; }
