/* ===================================
    Niamh Lynch — dark mode overrides
    Loaded after blocks-portfolio.css
====================================== */
:root {
  --dm-bg: #050203;
  --dm-surface: #050203;
  --dm-surface-2: #050203;
  --dm-border: rgba(255, 255, 255, 0.16);
  --dm-text: #FFFFFF;
  --dm-text-soft: rgba(255, 255, 255, 0.68);
}

body.bg-light-green {
  background-color: var(--dm-bg) !important;
  color: var(--dm-text);
}

a, a:hover {
  color: var(--dm-text);
}

/* nav name */
.navbar-brand.site-name-brand {
  color: var(--dm-text) !important;
  font-weight: 600;
  font-size: 1.1rem;
}

header .header-icon a {
  color: var(--dm-text) !important;
}

header .push-button span {
  background-color: var(--dm-text) !important;
}

/* hero section: darken the background photo so white type reads clearly */
.main-content > section:first-of-type {
  position: relative;
}
.main-content > section:first-of-type::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #D400FF 0%, #6531FF 100%);
  z-index: 0;
}
.main-content > section:first-of-type > * {
  position: relative;
  z-index: 1;
}
.main-content > section:first-of-type,
.main-content > section:first-of-type * {
  color: var(--dm-text);
}

/* case study pages: fade the top gradient down into the solid black background */
body.case-study-page .main-content > section:first-of-type::before {
  background: linear-gradient(180deg, #D400FF 0%, #6531FF 55%, #050203 100%);
}

/* hero pill badge */
.fs-16.bg-white {
  background-color: var(--dm-surface-2) !important;
  color: var(--dm-text) !important;
  border: 1px solid var(--dm-border);
}

/* trusted-by row + client logos */
.client-logo-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 56px;
}
.client-box {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 52px;
}
.client-box img {
  filter: none;
  opacity: 1;
  max-height: 34px;
  width: auto;
  max-width: 150px;
  object-fit: contain;
  height: auto !important;
}
.client-box img[src*="logo-castlemartyr"] {
  max-height: 48px;
}
@media (max-width: 767px) {
  .client-logo-row { gap: 32px; }
}

/* main content cards */
.stack-card-item.bg-white {
  background-color: var(--dm-surface) !important;
  color: var(--dm-text);
  border: 1px solid var(--dm-border);
}
.stack-card-item.bg-white * {
  color: inherit;
}
.stack-card-item.bg-white .text-base-color,
.stack-card-item.bg-white a.text-decoration-line-bottom {
  color: var(--base-color) !important;
}

/* skill/tag chips inside accordion body */
.accordion-body span.bg-white {
  background-color: #D400FF !important;
  color: #FFFFFF !important;
  border-color: #D400FF !important;
}

/* borders throughout the cards */
.border-color-extra-medium-gray,
.border-color-light-medium-gray,
.border-extra-medium-gray {
  border-color: var(--dm-border) !important;
}

/* generic text utility overrides */
.text-dark-gray {
  color: var(--dm-text) !important;
}
.text-medium-gray {
  color: var(--dm-text-soft) !important;
}

/* footer */
footer {
  background-color: var(--dm-bg) !important;
  color: var(--dm-text);
}
footer .fs-18.fw-500,
footer p,
footer a {
  color: var(--dm-text);
}
/* project plus icon buttons */
.sliding-box-content span.bg-white i.icon-feather-plus {
  color: #050203 !important;
}

footer .text-base-color {
  color: var(--base-color) !important;
}

/* testimonial pagination dots: active bullet was the same color as the page background */
.swiper-dark-pagination .swiper-pagination-bullet {
  background-color: rgba(212, 0, 255, 0.35) !important;
}
.swiper-dark-pagination .swiper-pagination-bullet:hover,
.swiper-dark-pagination .swiper-pagination-bullet.swiper-pagination-bullet-active {
  background-color: #D400FF !important;
}
.swiper-dark-pagination .swiper-pagination-bullet:before {
  border-color: #D400FF !important;
}

/* sidebar menu hover */
.menu-hover-pink:hover {
  color: #D400FF !important;
}

/* rotating card stack (Seer brand naming section) */
.card-stack-wrapper {
  padding: 0 60px 0 0;
}
.card-stack {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
}
.card-stack-item {
  position: absolute;
  inset: 0;
  border-radius: 0px;
  overflow: hidden;
  box-shadow: 0 14px 34px rgba(0,0,0,0.45);
  animation: cardStackCycle 12s infinite;
  animation-timing-function: ease-in-out;
}
.card-stack-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.card-stack-item:nth-child(1) { animation-delay: 0s; }
.card-stack-item:nth-child(2) { animation-delay: -2s; }
.card-stack-item:nth-child(3) { animation-delay: -4s; }
.card-stack-item:nth-child(4) { animation-delay: -6s; }
.card-stack-item:nth-child(5) { animation-delay: -8s; }
.card-stack-item:nth-child(6) { animation-delay: -10s; }

@keyframes cardStackCycle {
  0%, 11% {
    transform: translate(0, 0) scale(1);
    opacity: 1;
    z-index: 6;
  }
  16.6%, 27.6% {
    transform: translate(22px, -22px) scale(0.97);
    opacity: 0.9;
    z-index: 5;
  }
  33.3%, 44.3% {
    transform: translate(44px, -44px) scale(0.94);
    opacity: 0.75;
    z-index: 4;
  }
  50%, 61% {
    transform: translate(66px, -66px) scale(0.91);
    opacity: 0.6;
    z-index: 3;
  }
  66.6%, 77.6% {
    transform: translate(88px, -88px) scale(0.88);
    opacity: 0.45;
    z-index: 2;
  }
  83.3%, 94.3% {
    transform: translate(110px, -110px) scale(0.85);
    opacity: 0.3;
    z-index: 1;
  }
  100% {
    transform: translate(0, 0) scale(1);
    opacity: 1;
    z-index: 6;
  }
}

@media (prefers-reduced-motion: reduce) {
  .card-stack-item {
    animation: none;
  }
  .card-stack-item:not(:first-child) {
    display: none;
  }
}

@media (max-width: 991px) {
  .card-stack-wrapper {
    padding: 20px 20px 20px 0;
  }
}

/* portrait panel color overlay + decorative blur circles */
.glass-effect-image-box .color-overlay {
  background: linear-gradient(0deg, rgba(212, 0, 255, 0) 0%, #D400FF 100%) !important;
}
.bg-bright-green-transparent {
  background-color: rgba(212, 0, 255, 0.8) !important;
}

/* soft pink/purple gradient washes across the page background */
.main-content {
  position: relative;
}
.main-content::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3200px;
  background:
    radial-gradient(circle at 15% 8%, rgba(212, 0, 255, 0.22) 0%, transparent 42%),
    radial-gradient(circle at 85% 30%, rgba(101, 49, 255, 0.20) 0%, transparent 45%),
    radial-gradient(circle at 20% 62%, rgba(212, 0, 255, 0.16) 0%, transparent 40%),
    radial-gradient(circle at 90% 85%, rgba(101, 49, 255, 0.18) 0%, transparent 42%);
  z-index: 0;
  pointer-events: none;
}
.main-content > section {
  position: relative;
  z-index: 1;
}

/* case study pages: solid background, no gradient wash */
body.case-study-page .main-content::before {
  content: none;
}

/* soft pink gradient behind the testimonial column */
.testimonial-gradient-panel {
  position: relative;
}
.testimonial-gradient-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 85% 30%, rgba(212, 0, 255, 0.35) 0%, transparent 60%),
              radial-gradient(circle at 100% 90%, rgba(101, 49, 255, 0.30) 0%, transparent 55%);
  z-index: 0;
  pointer-events: none;
}
.testimonial-gradient-panel > * {
  position: relative;
  z-index: 1;
}

/* Seer Brand Takeover: 2 stacked images + 1 tall video, equal gaps both directions */
.takeover-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 20px;
  height: 100%;
  min-height: 460px;
}
.takeover-grid-img-1 {
  grid-column: 1;
  grid-row: 1;
}
.takeover-grid-img-2 {
  grid-column: 1;
  grid-row: 2;
}
.takeover-grid-video {
  grid-column: 2;
  grid-row: 1 / 3;
}
@media (max-width: 991px) {
  .takeover-grid {
    min-height: 360px;
  }
}
@media (max-width: 575px) {
  .takeover-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    min-height: 0;
  }
  .takeover-grid-video {
    grid-column: 1;
    grid-row: 3;
    aspect-ratio: 4 / 3;
  }
}

/* extra breathing room between imagery and text in these two sections */
.section-text-offset {
  padding-left: 30px;
}
@media (max-width: 991px) {
  .section-text-offset {
    padding-left: 0;
  }
}

/* side-by-side sections: media column spans the full section height */
.section-media-full-height {
  min-height: 460px;
}
@media (max-width: 991px) {
  .section-media-full-height {
    min-height: 360px;
    margin-top: 30px;
  }
}

/* project page sections: full-bleed media to the true edge of the site, fixed equal section height */
.project-bleed-section {
  height: 620px;
  overflow: hidden;
}
.project-media-bleed {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 44%;
  overflow: hidden;
}
.project-media-bleed.left {
  left: 0;
}
.project-media-bleed.right {
  right: 0;
}
.project-bleed-text {
  padding: 0 60px;
  max-width: 100%;
}
@media (max-width: 1199px) {
  .project-media-bleed {
    width: 42%;
  }
}
@media (max-width: 991px) {
  .project-bleed-section {
    height: auto;
    padding-top: 40px;
    padding-bottom: 40px;
  }
  .project-media-bleed {
    position: relative;
    width: 100%;
    height: 320px;
    top: auto;
    bottom: auto;
    left: auto !important;
    right: auto !important;
    margin-bottom: 30px;
  }
  .project-bleed-text {
    padding: 0 15px;
  }
}

/* Seer: Brand Naming & Identity — 3 stacked images */
.brand-id-stack {
  display: grid;
  grid-template-rows: 1fr 1fr 1fr;
  height: 100%;
  width: 100%;
  gap: 4px;
}
.brand-id-stack-row-1,
.brand-id-stack-row-2,
.brand-id-stack-row-3 {
  overflow: hidden;
}

/* Seer: Strategic Gifting — image + video split */
.gifting-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  height: 100%;
  width: 100%;
  gap: 20px;
}
.gifting-split-img,
.gifting-split-video {
  overflow: hidden;
}

@media (max-width: 991px) {
  .brand-id-stack {
    grid-template-rows: auto auto auto;
    height: auto;
  }
  .brand-id-stack-row-1,
  .brand-id-stack-row-2,
  .brand-id-stack-row-3 {
    height: 220px;
  }
  .gifting-split {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    height: auto;
  }
  .gifting-split-img,
  .gifting-split-video {
    height: 220px;
  }
}

/* Seer: Pitching the Idea — match the fixed height of the other project sections */
.pitching-fixed-height {
  height: 620px;
  overflow: hidden;
}
@media (max-width: 991px) {
  .pitching-fixed-height {
    height: auto;
    overflow: visible;
  }
}

/* Frontline Gap: Identity Design & Visual System — 2x2 image grid */
.identity-grid-2x2 {
  display: grid;
  grid-template-rows: 588fr 448fr;
  gap: 20px;
  height: 100%;
  width: 100%;
}
.identity-grid-row {
  display: grid;
  gap: 20px;
  min-height: 0;
}
.identity-grid-row-top {
  grid-template-columns: 521fr 709fr;
}
.identity-grid-row-bottom {
  grid-template-columns: 802fr 445fr;
}
.identity-grid-cell {
  overflow: hidden;
}

/* Frontline Gap: The Frontline Summit'25 — large left panel + 2 stacked right panels */
.summit-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 20px;
  height: 100%;
  width: 100%;
}
.summit-grid-main {
  grid-column: 1;
  grid-row: 1 / 3;
  overflow: hidden;
}
.summit-grid-top {
  grid-column: 2;
  grid-row: 1;
  overflow: hidden;
}
.summit-grid-bottom {
  grid-column: 2;
  grid-row: 2;
  overflow: hidden;
}

@media (max-width: 991px) {
  .identity-grid-2x2 {
    height: auto;
    grid-template-rows: 220px 220px;
  }
  .identity-grid-row {
    height: 220px;
  }
  .summit-grid {
    height: auto;
    grid-template-columns: 1fr;
    grid-template-rows: 260px 180px 180px;
  }
  .summit-grid-main {
    grid-column: 1;
    grid-row: 1;
  }
  .summit-grid-top {
    grid-column: 1;
    grid-row: 2;
  }
  .summit-grid-bottom {
    grid-column: 1;
    grid-row: 3;
  }
}

/* WOW: Event Theme & Identity — simple 2-row stack */
.theme-stack {
  display: grid;
  grid-template-rows: 569fr 570fr;
  gap: 20px;
  height: 100%;
  width: 100%;
}
.theme-stack-row {
  overflow: hidden;
}

/* WOW: Cross-Functional Collaboration — 2 columns, each with its own row split */
.cross-grid {
  display: grid;
  grid-template-columns: 694fr 881fr;
  grid-template-rows: 1fr;
  gap: 24px;
  height: 100%;
  width: 100%;
}
.cross-grid-col {
  display: grid;
  gap: 24px;
  min-width: 0;
  height: 100%;
}
.cross-grid-col-left {
  grid-template-rows: 887fr 427fr;
}
.cross-grid-col-right {
  grid-template-rows: 516fr 795fr;
}
.cross-grid-cell {
  overflow: hidden;
  min-height: 0;
}

/* WOW: Event Coordination & Stakeholder Management — 3-cell left column + 2-cell right column */
.coord-grid {
  display: grid;
  grid-template-columns: 797fr 654fr;
  grid-template-rows: 1fr;
  gap: 24px;
  height: 100%;
  width: 100%;
}
.coord-grid-col {
  display: grid;
  gap: 24px;
  min-width: 0;
  height: 100%;
}
.coord-grid-col-left {
  grid-template-rows: 430fr 374fr 372fr;
}
.coord-grid-col-right {
  grid-template-rows: 780fr 425fr;
}
.coord-grid-cell {
  overflow: hidden;
  min-height: 0;
}

@media (max-width: 991px) {
  .theme-stack {
    height: auto;
    grid-template-rows: 220px 220px;
  }
  .cross-grid {
    height: auto;
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
  }
  .cross-grid-col {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: none !important;
  }
  .cross-grid-cell {
    height: 220px;
  }
  .coord-grid {
    height: auto;
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
  }
  .coord-grid-col {
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: none !important;
  }
  .coord-grid-col-right {
    grid-template-columns: 1fr 1fr;
  }
  .coord-grid-cell {
    height: 180px;
  }
}

/* this theme never defined .h-100 (only .h-100px exists) — needed across every
   project-page media grid where images/videos rely on height:100% + object-fit:cover */
.h-100 {
  height: 100% !important;
}
