/* Additional styles extracted from HTML */

/* Cropped video style */
.cropped-video {
  display: block;
  width: 100%;
  height: auto;
  object-position: center 80%;
  overflow: hidden;
}

/* Hidden content styles for section toggles */
#hidden-content-1,
#hidden-content-2,
#hidden-content-3,
#hidden-content-4,
#hidden-content-5,
#hidden-content-6,
#hidden-content-7,
#hidden-content-8,
#hidden-content-9,
#hidden-content-10,
#hidden-content-11 {
  transition: max-height 0.9s ease, opacity 0.9s ease, background-color 0.9s ease;
}

.expanded {
  opacity: 1;
}

/* Section background transition */
[data-section] {
  transition: background-color 0.9s ease;
}

/* Opt out of browser scroll anchoring on accordion cards (collapse/expand). */
[data-section],
[data-section] * {
  overflow-anchor: none;
}

/* Line the pull-tab hangs from when collapsed (header bottom) */
[data-section] > div > .grid.grid-cols-12 {
  border-bottom: 1px solid #d1d5db;
  padding-bottom: 1.25rem;
}

/* When open, tab hangs from the expanded panel bottom and rides down with it */
[id^="hidden-content-"].max-h-0 {
  margin-top: 0 !important;
  border-bottom: none;
}

[id^="hidden-content-"]:not(.max-h-0) {
  margin-top: 0.75rem !important;
  border-bottom: 1px solid #d1d5db;
}

[data-section].bg-gray-100 > div > .grid.grid-cols-12 {
  border-bottom-color: transparent;
}

/* Centered pull-down expand tab (always at section bottom) */
.section-expand-tab {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  position: relative;
  z-index: 1;
  box-sizing: border-box;
  width: fit-content;
  min-width: min(15%, 100%);
  max-width: calc(100% - 2rem);
  margin: -1px auto 0;
  padding: 0.5rem 1.15rem 0.6rem;
  border: 1px solid #d1d5db;
  border-top: none;
  border-radius: 0 0 0.45rem 0.45rem;
  background: #ffffff;
  color: #1E417B;
  font-family: inherit;
  font-size: clamp(0.75rem, 2.8vw, 0.875rem);
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.2;
  white-space: nowrap;
  cursor: pointer;
  /* Never rotate the whole tab (legacy accordion rotated the button) */
  transform: none !important;
  transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.section-expand-tab:hover {
  color: #3C9BD6;
  border-color: #3C9BD6;
  background: #ffffff;
}

.section-expand-tab-icon {
  display: inline-block;
  width: 0.5rem;
  height: 0.5rem;
  margin-top: -0.1rem;
  flex-shrink: 0;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg); /* chevron points down = See more */
  transition: transform 0.2s ease, margin-top 0.2s ease;
}

.section-expand-tab.is-expanded .section-expand-tab-icon {
  margin-top: 0.15rem;
  transform: rotate(-135deg); /* chevron points up = See less */
}

/* Keep the same solid fill as the open section card */
[data-section].bg-gray-100 .section-expand-tab {
  background: #f3f4f6;
  border-color: #d1d5db;
}

[data-section].bg-gray-100 .section-expand-tab:hover {
  border-color: #3C9BD6;
  color: #3C9BD6;
}

/* Do not animate transform on expand tabs (avoids whole-button flip on mobile) */
button:not(.section-expand-tab) {
  transition: transform 0.9s ease;
}

/* Portfolio client logo strip */
.portfolio-logo-strip {
  padding: 0.75rem;
  background: #fff;
}

.portfolio-logo-strip-inner {
  --logo-gap-x: 1rem;
  max-width: 80rem;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  column-gap: var(--logo-gap-x);
  row-gap: 1.5rem;
  padding: 1rem 0.5rem;
  border-top: 1px solid #e5e7eb;
  border-bottom: 1px solid #e5e7eb;
}

.portfolio-logo-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  min-width: 0;
  min-height: 3rem;
  max-width: 100%;
  flex: 0 1 calc((100% - var(--logo-gap-x)) / 2);
  overflow: visible;
  opacity: 0.85;
  transition: opacity 0.25s ease;
}

.portfolio-logo-link:hover {
  opacity: 1;
}

.portfolio-logo-img {
  display: block;
  max-height: 2.65rem;
  width: auto;
  max-width: 90%;
  height: auto;
  object-fit: contain;
  overflow: visible;
}

.portfolio-logo-img--wide {
  max-width: 100%;
  max-height: 2.55rem;
}

.portfolio-logo-img--softsalus {
  max-width: 100%;
  max-height: 2.45rem;
}

@media (min-width: 480px) {
  .portfolio-logo-link {
    flex-basis: calc((100% - (2 * var(--logo-gap-x))) / 3);
  }
}

@media (min-width: 768px) {
  .portfolio-logo-strip-inner {
    --logo-gap-x: 1.5rem;
    row-gap: 1.25rem;
  }

  .portfolio-logo-link {
    flex-basis: calc((100% - (3 * var(--logo-gap-x))) / 4);
  }
}

@media (min-width: 1024px) {
  .portfolio-logo-strip {
    padding: 0.75rem 2rem;
  }

  .portfolio-logo-strip-inner {
    --logo-gap-x: clamp(1.25rem, 2.25vw, 2.5rem);
    row-gap: 1rem;
    padding: 0.85rem 1rem;
  }

  .portfolio-logo-link {
    flex-basis: calc((100% - (5 * var(--logo-gap-x))) / 6);
  }
}

/* Portfolio case carousels: taller frame, full image visible (contain) */
.carousel_container.portfolio-carousel {
  width: 100%;
  max-width: 32rem;
  padding: 0;
  aspect-ratio: 4 / 3;
  min-height: 14rem;
  background: #f3f4f6;
  border-radius: 0.5rem;
}

.carousel_container.portfolio-carousel .carousel_img {
  object-fit: contain;
  object-position: center;
  padding: 0.75rem;
  box-sizing: border-box;
}

@media (max-width: 640px) {
  .carousel_container.portfolio-carousel {
    min-height: 12rem;
    aspect-ratio: 5 / 4;
  }
}

@media (min-width: 1024px) {
  .carousel_container.portfolio-carousel {
    min-height: 22rem;
    aspect-ratio: 5 / 4;
  }
}

/* Portfolio credibility tags */
.portfolio-case-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.portfolio-case-tag {
  display: inline-block;
  font-size: 0.7rem;
  line-height: 1.3;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #1E417B;
  border: 1px solid #1E417B;
  background: #fff;
  padding: 0.3rem 0.55rem;
  border-radius: 0.25rem;
}

@media (min-width: 1024px) {
  .portfolio-case-tag {
    font-size: 0.8rem;
  }
}

/* Shared body / excerpt typography (Outfit + consistent weight) */
.section-excerpt,
.text-content-size {
  font-family: 'Outfit', sans-serif;
  font-weight: 400;
  color: #333333;
}

.section-excerpt strong,
.text-content-size strong {
  font-weight: 600;
  color: inherit;
}

/* White excerpt on blue consultation band (not section-intro-band) */
.section-excerpt-light,
#consultation .section-excerpt {
  color: #ffffff;
}

#consultation .section-title,
#consultation .section-title p {
  color: #ffffff;
}

[id^="hidden-content-"] .portfolio-case-links a {
  font-size: 0.875em;
}

/*
 * Short full-bleed intro bands (About / Services / Portfolio / Contacts).
 * Same solid brand blue as consultation — no gradients; white type; compact height.
 * Class is also in HTML so mobile gets the band even before/without JS class injection.
 */
.section-intro-format,
.section-intro-band {
  background-color: #1E417B;
  color: #ffffff;
  padding-top: 1.75rem;
  padding-bottom: 1.75rem;
}

@media (min-width: 1024px) {
  .section-intro-format,
  .section-intro-band {
    padding-top: 2.25rem;
    padding-bottom: 2.25rem;
  }
}

.section-intro-format .section-title,
.section-intro-format .section-title p,
.section-intro-band .section-title,
.section-intro-band .section-title p {
  color: #ffffff;
}

.section-intro-format .section-excerpt,
.section-intro-format .section-excerpt strong,
.section-intro-band .section-excerpt,
.section-intro-band .section-excerpt strong {
  color: #ffffff;
  margin-top: 0.75rem;
}

@media (min-width: 640px) {
  .section-intro-format .section-excerpt,
  .section-intro-band .section-excerpt {
    margin-top: 0;
  }
}

/* Consultation band — same blue as intro strips */
#consultation {
  background-color: #1E417B;
} 