/* ============================================================
   Black Iris Films — shared site shell
   Header + top CTA bar + footer + Google reviews widget
   + sticky quiz CTA + pricing callout.

   Scoped: only styles classes it owns (.bif-*, .quiz-sticky,
   .pricing-callout, .btn-green). Deliberately sets NO global
   element rules (body/a/button/*) so it can be dropped into any
   existing page without clobbering its styles.

   Paired with bif-shell.js, which injects the matching markup.
   ============================================================ */

:root {
  --bif-navy: #29334d;
  --bif-midnight: #0f1826;
  --bif-slate: #4b6b8b;
  --bif-fog: #d5d8de;
  --bif-off-white: #fafaf8;
  --bif-mint: #61b383;
  --bif-mint-bright: #3bde7a;
  --bif-green: #3d9e5f;
  --bif-green-hover: #348a52;
  --bif-gold: #e8b82f;
  --bif-font: Montserrat, Arial, Helvetica, sans-serif;
}

/* Keep box model predictable inside our components without
   touching the host page's own elements. */
.bif-top-cta, .bif-top-cta *,
.bif-header, .bif-header *,
.bif-mobile-menu, .bif-mobile-menu *,
.bif-footer, .bif-footer *,
.bif-google-widget, .bif-google-widget *,
.quiz-sticky, .quiz-sticky *,
.pricing-callout-section, .pricing-callout-section * {
  box-sizing: border-box;
}

/* Make our buttons inherit the shell font family, not the host's.
   Use font-family (not the `font` shorthand) so we don't clobber the
   font-size/weight set by specific button rules e.g. the Services trigger. */
.bif-header button,
.bif-mobile-menu button,
.bif-google-widget button,
.quiz-sticky button {
  font-family: inherit;
}

/* Optional: push page content below the fixed header (108px).
   Add data-bif-offset to <body> on pages whose content starts
   at the very top. */
body[data-bif-offset] { padding-top: 108px; }

/* ===== TOP CTA BAR ===== */
.bif-top-cta {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: 36px;
  background: var(--bif-midnight);
  border-bottom: 1px solid rgba(255,255,255,0.1);
  color: #fff;
  font-family: var(--bif-font);
}
.bif-top-cta-inner {
  max-width: 1260px;
  height: 100%;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.bif-top-cta-copy {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.bif-top-cta-mobile { display: none; }
.bif-top-cta-link {
  flex: 0 0 auto;
  color: var(--bif-mint);
  text-decoration: none;
  transition: color 0.2s ease;
}
.bif-top-cta-link:hover { color: var(--bif-mint-bright); }

/* ===== HEADER ===== */
.bif-header {
  position: fixed;
  top: 36px;
  left: 0;
  right: 0;
  z-index: 1000;
  height: 72px;
  background: #000;
  color: #fff;
  font-family: var(--bif-font);
}
.bif-header-inner {
  max-width: 1260px;
  height: 100%;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.bif-logo {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  line-height: 1;
  text-decoration: none;
}
.bif-logo svg {
  display: block;
  height: 48px;
  width: auto;
  transform: translateY(7px);
}
.bif-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.bif-nav-link,
.bif-services-trigger {
  color: #fff;
  background: none;
  border: 0;
  padding: 0;
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: opacity 0.2s ease;
}
.bif-nav-link:hover,
.bif-services-trigger:hover { opacity: 0.7; }
.bif-services-menu-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.bif-services-menu {
  position: absolute;
  top: calc(100% + 20px);
  left: 50%;
  width: 360px;
  padding: 10px;
  background: #050505;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  box-shadow: 0 24px 70px rgba(0,0,0,0.45);
  opacity: 0;
  visibility: hidden;
  transform: translateX(-50%);
  transition: opacity 0.2s ease, visibility 0.2s ease;
}
.bif-services-menu::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -22px;
  height: 22px;
}
.bif-services-menu-wrap:hover .bif-services-menu,
.bif-services-menu-wrap:focus-within .bif-services-menu {
  opacity: 1;
  visibility: visible;
}
.bif-services-menu a {
  display: block;
  padding: 12px 14px;
  border-radius: 6px;
  color: #fff;
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.25;
}
.bif-services-menu a:hover { background: #111; }
.bif-header-cta {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  padding: 10px 20px;
  border-radius: 2px;
  background: var(--bif-green);
  color: #fff;
  text-decoration: none;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: background 0.2s ease;
}
.bif-header-cta:hover { background: var(--bif-green-hover); }
.bif-menu-toggle {
  display: none;
  border: 0;
  background: none;
  color: #fff;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}
.bif-mobile-menu {
  position: fixed;
  top: 108px;
  left: 0;
  right: 0;
  z-index: 999;
  display: none;
  max-height: calc(100vh - 108px);
  overflow-y: auto;
  padding: 20px 24px 28px;
  background: #000;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  color: #fff;
  font-family: var(--bif-font);
}
.bif-mobile-menu.is-open {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.bif-mobile-link,
.bif-mobile-summary {
  color: #fff;
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.bif-mobile-summary {
  list-style: none;
  cursor: pointer;
}
.bif-mobile-summary::-webkit-details-marker { display: none; }
.bif-mobile-services {
  display: grid;
  gap: 10px;
  margin-top: 14px;
  padding: 14px 0 2px 14px;
  border-left: 1px solid rgba(255,255,255,0.15);
}
.bif-mobile-services a {
  color: rgba(226,232,240,0.92);
  text-decoration: none;
  font-size: 13px;
  line-height: 1.25;
}
.bif-mobile-cta {
  display: inline-block;
  margin-top: 8px;
  padding: 12px 20px;
  border-radius: 2px;
  background: var(--bif-green);
  color: #fff;
  text-align: center;
  text-decoration: none;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ===== FOOTER ===== */
.bif-footer {
  background: #000;
  color: rgba(255,255,255,0.6);
  padding: 40px 0 32px;
  font-size: 14px;
  font-family: var(--bif-font);
  border: 0;
}
/* Pages that float a CTA card over the footer (data-bif-footer-overlap on
   <body>) need extra footer top-padding so the footer text clears the card. */
body[data-bif-footer-overlap] .bif-footer { padding-top: 178px; }
.bif-footer-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 32px;
}
.bif-footer-left {
  flex: 1 1 300px;
  min-width: 280px;
}
.bif-footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 16px;
}
.bif-footer a {
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  transition: color 0.2s ease;
}
.bif-footer a:hover { color: #fff; }
.bif-footer-meta {
  display: grid;
  gap: 2px;
  color: rgba(255,255,255,0.45);
  font-size: 13px;
}
.bif-footer-meta p { margin: 0; }
.bif-footer-meta .bif-privacy {
  display: inline-block;
  margin-top: 4px;
  color: rgba(255,255,255,0.5);
}
.bif-footer-right {
  flex: 0 1 auto;
  text-align: right;
}
.bif-footer-contact {
  display: grid;
  gap: 4px;
  margin-bottom: 16px;
}
.bif-socials {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-bottom: 16px;
}
.bif-socials a {
  display: inline-flex;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.6);
}
.bif-socials a:hover { color: #fff; }
.bif-socials svg {
  width: 20px;
  height: 20px;
  display: block;
}
.bif-partner {
  color: rgba(255,255,255,0.45);
  font-size: 13px;
}
.bif-partner strong {
  color: var(--bif-green);
  font-weight: 800;
}

/* ===== GOOGLE REVIEWS WIDGET ===== */
.bif-google-widget {
  position: fixed;
  left: 16px;
  bottom: 16px;
  z-index: 900;
  max-width: calc(100vw - 32px);
  color: var(--bif-navy);
  font-family: var(--bif-font);
}
.bif-google-panel {
  display: none;
  width: 342px;
  max-width: 100%;
  margin-bottom: 12px;
  overflow: hidden;
  border: 1px solid rgba(213,216,222,0.8);
  border-radius: 8px;
  background: rgba(255,255,255,0.98);
  box-shadow: 0 18px 56px rgba(15,24,38,0.2);
}
.bif-google-widget.is-open .bif-google-panel { display: block; }
.bif-google-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(213,216,222,0.7);
}
.bif-google-title-group,
.bif-google-trigger {
  display: flex;
  align-items: center;
  gap: 12px;
}
.bif-google-mark-wrap {
  display: flex;
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(15,24,38,0.08);
}
.bif-google-mark { width: 20px; height: 20px; display: block; }
.bif-stars {
  display: flex;
  gap: 2px;
  color: var(--bif-gold);
}
.bif-stars svg { width: 14px; height: 14px; fill: currentColor; }
.bif-google-panel h2 {
  margin: 4px 0 0;
  font-family: var(--bif-font);
  font-size: 13px;
  line-height: 1.2;
  color: var(--bif-navy);
}
.bif-google-close {
  display: grid;
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--bif-slate);
  cursor: pointer;
}
.bif-google-close:hover {
  background: rgba(213,216,222,0.45);
  color: var(--bif-navy);
}
.bif-google-reviews {
  display: grid;
  gap: 12px;
  max-height: 336px;
  overflow-y: auto;
  padding: 16px;
}
.bif-review {
  margin: 0;
  padding: 12px;
  border-radius: 6px;
  background: var(--bif-off-white);
}
.bif-review blockquote {
  margin: 8px 0 0;
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--bif-navy);
}
.bif-review figcaption {
  margin-top: 8px;
  color: var(--bif-slate);
  font-size: 11px;
  font-weight: 800;
}
.bif-google-panel-foot {
  padding: 12px 16px;
  border-top: 1px solid rgba(213,216,222,0.7);
}
.bif-google-profile {
  display: inline-flex;
  width: 100%;
  justify-content: center;
  padding: 10px 16px;
  border-radius: 2px;
  background: var(--bif-mint);
  color: #fff;
  text-decoration: none;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.bif-google-profile:hover { background: var(--bif-mint-bright); }
.bif-google-trigger {
  max-width: 100%;
  padding: 12px 14px;
  border: 1px solid rgba(213,216,222,0.8);
  border-radius: 8px;
  background: rgba(255,255,255,0.95);
  color: var(--bif-navy);
  text-align: left;
  box-shadow: 0 14px 40px rgba(15,24,38,0.18);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.bif-google-trigger:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 48px rgba(15,24,38,0.22);
}
.bif-google-trigger-copy {
  min-width: 0;
  display: grid;
  gap: 3px;
}
.bif-google-label {
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
}
.bif-google-sub {
  color: var(--bif-slate);
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
}
.bif-google-chevron {
  display: grid;
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 999px;
  background: rgba(213,216,222,0.6);
  color: var(--bif-slate);
  transition: transform 0.2s ease;
}
.bif-google-widget.is-open .bif-google-chevron { transform: rotate(180deg); }

/* ===== STICKY QUIZ CTA ===== */
.quiz-sticky {
  position: fixed;
  left: 50%;
  bottom: 18px;
  transform: translate(-50%, 14px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  z-index: 950;
  width: min(438px, calc(100% - 32px));
  min-height: 148px;
  display: grid;
  grid-template-columns: 112px 1fr;
  background: #ffffff;
  color: #161b26;
  border: 1px solid rgba(11,17,32,0.10);
  border-radius: 4px;
  box-shadow: 0 18px 54px rgba(0,0,0,0.28);
  overflow: hidden;
  font-family: var(--bif-font);
  transition: opacity 0.38s ease, transform 0.38s ease, visibility 0s linear 0.38s;
}
body.show-quiz-sticky .quiz-sticky {
  transform: translate(-50%, 0);
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition-delay: 0s;
}
.quiz-sticky-media {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 46% 42%;
}
.quiz-sticky-content {
  position: relative;
  padding: 18px 42px 18px 20px;
}
.quiz-sticky-close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  background: transparent;
  border: none;
  color: #c5c8d0;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}
.quiz-sticky-close:hover { color: #161b26; }
.quiz-sticky h3 {
  font-family: var(--bif-font);
  font-size: 18px;
  font-weight: 800;
  margin: 0 0 10px;
  color: #161b26;
}
.quiz-sticky p {
  font-size: 14px;
  color: #343a46;
  line-height: 1.35;
  margin: 0 0 20px;
}
.quiz-sticky-link {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: #161b26;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
}
.quiz-sticky-link:hover {
  color: #3d9e5f;
  text-decoration: none;
}
.quiz-sticky-link:hover .quiz-sticky-label { text-decoration: underline; }
.quiz-sticky-link .quiz-sticky-arrow {
  font-size: 24px;
  line-height: 1;
  text-decoration: none;
  transform: translateY(-1px);
}

/* ===== PRICING CALLOUT ===== */
.pricing-callout-section {
  /* Inherit the page background so the white card sits on the page's
     own (black/dark) backdrop. The white->black gradient used on the
     service pages assumes a white section above, which these dark
     stories pages don't have. */
  background: transparent;
  padding: 0 0 8px;
  font-family: var(--bif-font);
}
.pricing-callout {
  max-width: 940px;
  margin: 0 auto;
  padding: 30px 34px;
  background: #ffffff;
  border: none;
  border-radius: 8px;
  box-shadow: 0 18px 45px rgba(0,0,0,0.12);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
.pricing-callout h2 {
  font-family: var(--bif-font);
  color: #000000;
  font-size: 24px;
  line-height: 1.2;
  margin: 0 0 6px;
  font-weight: 800;
}
.pricing-callout p {
  color: #666666;
  font-size: 14px;
  line-height: 1.5;
  margin: 0;
  max-width: none;
}
.btn-green {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  min-height: 52px;
  padding: 14px 30px;
  background: #3d9e5f;
  color: #ffffff;
  border-radius: 3px;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 0.2s ease;
}
.btn-green:hover {
  background: #348a52;
  text-decoration: none;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1023px) {
  .bif-nav,
  .bif-header-cta { display: none; }
  .bif-menu-toggle { display: inline-flex; align-items: center; justify-content: center; }
}
@media (max-width: 900px) {
  .pricing-callout { margin: 0 24px; }
}
@media (max-width: 768px) {
  .quiz-sticky {
    grid-template-columns: 94px 1fr;
    min-height: 142px;
    bottom: 14px;
  }
  .quiz-sticky-content { padding: 16px 36px 16px 18px; }
  .quiz-sticky h3 { font-size: 16px; margin-bottom: 8px; }
  .quiz-sticky p { font-size: 13px; margin-bottom: 14px; }
}
@media (max-width: 767px) {
  .bif-top-cta-inner { font-size: 11px; }
  .bif-top-cta-desktop { display: none; }
  .bif-top-cta-mobile { display: inline; }
  .bif-header-inner { padding: 0 20px; }
  .bif-logo svg { height: 42px; }
  .bif-footer-inner { display: block; }
  .bif-footer-right { margin-top: 28px; text-align: left; }
  .bif-socials { justify-content: flex-start; }
  .bif-google-widget { left: 14px; bottom: 14px; }
  .bif-google-trigger { padding: 11px 12px; }
  body[data-bif-footer-overlap] .bif-footer { padding-top: 224px; }
}
@media (max-width: 600px) {
  .quiz-sticky {
    grid-template-columns: 82px 1fr;
    min-height: 108px;
  }
  .quiz-sticky-content { padding: 14px 34px 14px 16px; }
  .quiz-sticky h3 { font-size: 15px; }
  .quiz-sticky p { display: none; }
  .quiz-sticky-link { font-size: 14px; }
  .pricing-callout {
    align-items: flex-start;
    flex-direction: column;
    padding: 26px 24px;
  }
  .pricing-callout h2 { font-size: 22px; }
  .btn-green { width: 100%; }
}

/* When the sticky and the Google widget share the bottom-left/centre,
   nudge the Google widget up a touch on small screens is not needed
   since the sticky is centred; left/centre do not overlap. */
