/* ==========================================================================
   OUR-WORK-PORTFOLIO.CSS
   Shared components for the Our Work portfolio pages built on the Branding
   Projects design (branding-projects.html,
   seo-digital-projects.html): hero with image + filter row,
   intro mini-cards, featured project card, capability icon grid,
   before → after comparison cards, image-tile gallery.
   Class prefix "bp-" is historical (first built for Branding Projects).
   Builds on css/our-work.css and the .svc-page tokens from
   service-modern.css. Loaded AFTER our-work.css; page-specific layers
   (e.g. css/seo-digital-projects.css) load after this file.
   ========================================================================== */

/* section headings in this design are a notch smaller than the default */
.bp-page .bp-title {
  font-size: clamp(1.55rem, 2.8vw, 2.25rem);
}

/* --------------------------------------------------------------------------
   1. HERO — content left, branding image right, filter pills underneath
   -------------------------------------------------------------------------- */
.bp-hero {
  position: relative;
  overflow: hidden;
  padding: 40px 0 34px;
  background: linear-gradient(180deg, #ffffff 0%, var(--cs-pale-2) 100%);
}

.bp-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 40px;
  align-items: center;
}

.bp-hero__title {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(2rem, 4.1vw, 3.1rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--cs-navy);
  margin: 4px 0 18px;
}

.bp-hero__title span {
  display: block;
  color: var(--accent2);
}

.bp-hero__text {
  font-size: 1rem;
  line-height: 1.72;
  color: var(--text2);
  margin: 0;
  max-width: 560px;
}

.bp-hero__visual {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--cs-shadow-hover);
  aspect-ratio: 16 / 10;
}

.bp-hero__img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
  transition: transform 0.7s var(--svc-ease);
}

.bp-hero__visual:hover .bp-hero__img {
  transform: scale(1.04);
}

.bp-hero__visual::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, rgba(4, 27, 71, 0) 45%, rgba(4, 27, 71, 0.55) 100%);
  pointer-events: none;
}

.bp-hero__hand {
  position: absolute;
  z-index: 2;
  top: 12%;
  right: 7%;
  font-size: clamp(1.35rem, 2vw, 1.8rem);
  color: #fff;
  transform: rotate(-5deg);
  text-shadow: 0 2px 12px rgba(4, 27, 71, 0.5);
}

.bp-hero__hand::after {
  background: #9fcaff;
}

.bp-hero__filters {
  margin-top: 30px;
}

/* --------------------------------------------------------------------------
   2. INTRO — text + four compact cards | divider | handwritten statement
   -------------------------------------------------------------------------- */
.bp-intro__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 230px;
  gap: 40px;
  align-items: center;
}

.bp-intro__main .svc-p {
  max-width: 760px;
}

.bp-intro__cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 26px;
}

.bp-mini-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--cs-line);
  border-radius: 14px;
  padding: 20px 18px;
  box-shadow: 0 6px 20px rgba(6, 42, 107, 0.05);
  transition: opacity 0.7s var(--svc-ease), transform 0.35s var(--svc-ease), box-shadow 0.35s var(--svc-ease);
}

.bp-mini-card:hover,
.bp-mini-card[data-reveal].is-visible:hover {
  transform: translateY(-4px);
  box-shadow: var(--cs-shadow);
}

.bp-mini-card__icon {
  display: inline-flex;
  font-size: 1.8rem;
  line-height: 1;
  color: var(--accent2);
  margin-bottom: 12px;
}

.bp-mini-card__num {
  position: absolute;
  top: 16px;
  right: 18px;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 0.8rem;
  color: rgba(28, 111, 208, 0.45);
}

.bp-mini-card__title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--cs-navy);
  margin: 0 0 6px;
}

.bp-mini-card__text {
  font-size: 0.84rem;
  line-height: 1.55;
  color: var(--text2);
  margin: 0;
}

.bp-intro__aside {
  align-self: stretch;
  display: flex;
  align-items: center;
  border-left: 1px solid rgba(28, 111, 208, 0.25);
  padding-left: 34px;
}

.bp-intro__hand {
  font-size: clamp(1.7rem, 2.6vw, 2.3rem);
  color: var(--cs-navy);
  transform: rotate(-4deg);
}

/* --------------------------------------------------------------------------
   3. FEATURED BRANDING PROJECT
   -------------------------------------------------------------------------- */
.bp-featured {
  padding: 0 0 10px;
}

.bp-featured__card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  background: linear-gradient(135deg, var(--cs-pale-2) 0%, var(--cs-pale) 100%);
  border: 1px solid var(--cs-line);
  border-radius: 24px;
  box-shadow: var(--cs-shadow);
  overflow: hidden;
}

.bp-featured__main {
  padding: 36px 34px 36px 40px;
  min-width: 0;
}

/* featured client name (same look as .wp-featured__client on website-projects) */
.bp-featured__client {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 2px 0 14px;
}

.bp-featured__client-name {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--text);
}

.bp-featured__title {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(1.55rem, 2.6vw, 2.2rem);
  line-height: 1.15;
  color: var(--cs-navy);
  margin: 0 0 12px;
}

.bp-featured__desc {
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--text2);
  margin: 0 0 20px;
  max-width: 520px;
}

.bp-featured__subhead {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 12px;
}

.bp-components {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}

.bp-components li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.74rem;
  line-height: 1.3;
  color: var(--cs-navy);
}

.bp-components__icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--cs-line);
  color: var(--accent2);
  font-size: 1.2rem;
  box-shadow: 0 6px 16px rgba(6, 42, 107, 0.06);
}

.bp-components__icon i {
  display: inline-flex;
  line-height: 1;
}

.bp-featured__visual {
  position: relative;
  min-height: 360px;
  overflow: hidden;
}

.bp-featured__visual img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.7s var(--svc-ease);
}

.bp-featured__card:hover .bp-featured__visual img {
  transform: scale(1.04);
}

.bp-featured__visual::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(200deg, rgba(4, 27, 71, 0.78) 0%, rgba(4, 27, 71, 0.2) 45%, rgba(4, 27, 71, 0) 70%);
}

.bp-featured__hand {
  position: absolute;
  z-index: 2;
  top: 10%;
  right: 7%;
  font-size: clamp(1.3rem, 1.9vw, 1.75rem);
  color: #fff;
  text-align: left;
  transform: rotate(-5deg);
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}

.bp-featured__hand::after {
  background: #9fcaff;
}

/* --------------------------------------------------------------------------
   4. PORTFOLIO CARDS (extends .cs-card from our-work.css)
   -------------------------------------------------------------------------- */
.bp-card__label {
  display: block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent2);
  margin-bottom: 6px;
}

.bp-card__title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1.3;
  color: var(--cs-navy);
  margin: 0 0 8px;
}

.bp-card__services {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--accent);
  margin: -4px 0 16px;
}

/* --------------------------------------------------------------------------
   5. BRANDING CAPABILITIES — 4 × 2 icon grid
   -------------------------------------------------------------------------- */
.bp-capabilities__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px 40px;
  margin-bottom: 30px;
}

.bp-capabilities__hand {
  flex: none;
  font-size: clamp(1.4rem, 2.2vw, 1.9rem);
  color: var(--cs-navy);
  transform: rotate(-5deg);
}

.bp-capabilities__grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 26px 22px;
}

.bp-cap {
  text-align: center;
  padding: 0 6px;
}

.bp-cap__icon {
  width: 58px;
  height: 58px;
  margin: 0 auto 12px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #fff;
  border: 1px solid rgba(28, 111, 208, 0.25);
  box-shadow: 0 0 0 6px rgba(28, 111, 208, 0.08);
  color: var(--accent2);
  font-size: 1.35rem;
  transition: background 0.3s var(--svc-ease), color 0.3s var(--svc-ease);
}

.bp-cap__icon i {
  display: inline-flex;
  line-height: 1;
}

.bp-cap:hover .bp-cap__icon {
  background: var(--accent2);
  color: #fff;
}

.bp-cap__title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--cs-navy);
  margin: 0 0 6px;
}

.bp-cap__text {
  font-size: 0.84rem;
  line-height: 1.55;
  color: var(--text2);
  margin: 0;
}

/* --------------------------------------------------------------------------
   6. BRAND TRANSFORMATION — before → after + benefit checklist
   -------------------------------------------------------------------------- */
.bp-transform__head {
  max-width: 720px;
  margin-bottom: 28px;
}

.bp-transform__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 44px minmax(0, 1fr) minmax(0, 0.85fr);
  gap: 18px;
  align-items: stretch;
}

.bp-compare {
  position: relative;
  border-radius: 18px;
  padding: 22px 24px 24px;
  border: 1px solid var(--cs-line);
}

.bp-compare--before {
  background: #f4f5f7;
  border-color: rgba(7, 26, 46, 0.1);
}

.bp-compare--after {
  background: #fff;
  border-color: rgba(28, 111, 208, 0.35);
  box-shadow: var(--cs-shadow);
}

.bp-compare__tag {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  color: var(--text3);
}

.bp-compare--after .bp-compare__tag {
  color: var(--accent2);
}

.bp-compare__logo {
  display: grid;
  place-items: center;
  min-height: 96px;
  margin: 10px 0 16px;
  border-radius: 12px;
  background: #fff;
}

.bp-compare--before .bp-compare__logo {
  background: #ececef;
}

/* generic placeholder marks (not a client logo) */
.bp-mark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.bp-mark__symbol {
  width: 34px;
  height: 34px;
  flex: none;
}

.bp-mark--before .bp-mark__symbol {
  border: 3px dashed #8f949c;
  border-radius: 4px;
  transform: rotate(8deg);
}

.bp-mark--before .bp-mark__word {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.35rem;
  color: #6b7079;
}

.bp-mark--before .bp-mark__word em {
  font-family: "Courier New", monospace;
  font-style: normal;
  color: #9a8f86;
}

.bp-mark--after .bp-mark__symbol {
  border-radius: 10px 10px 10px 2px;
  background: linear-gradient(135deg, var(--accent2) 0%, var(--cs-navy) 100%);
}

.bp-mark--after .bp-mark__word {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.4rem;
  letter-spacing: -0.01em;
  color: var(--cs-navy);
}

.bp-compare__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.bp-compare__list li {
  position: relative;
  padding-left: 20px;
  font-size: 0.86rem;
  line-height: 1.45;
  color: var(--text2);
}

.bp-compare__list li::before {
  content: "\f623"; /* bootstrap-icons x-circle */
  font-family: "bootstrap-icons";
  position: absolute;
  left: 0;
  top: 0.15em;
  font-size: 0.8rem;
  line-height: 1;
  color: var(--text3);
}

.bp-compare--after .bp-compare__list li {
  color: var(--cs-navy);
  font-weight: 500;
}

.bp-compare--after .bp-compare__list li::before {
  content: "\f26a"; /* bootstrap-icons check-circle-fill */
  color: var(--accent2);
}

.bp-transform__arrow {
  align-self: center;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent2);
  color: #fff;
  font-size: 1.05rem;
  box-shadow: 0 10px 22px rgba(28, 111, 208, 0.3);
}

.bp-transform__arrow i {
  display: inline-flex;
  line-height: 1;
}

.bp-benefits {
  list-style: none;
  margin: 0;
  padding: 24px 22px;
  display: grid;
  align-content: center;
  gap: 14px;
  background: #fff;
  border: 1px solid var(--cs-line);
  border-radius: 18px;
  box-shadow: 0 6px 20px rgba(6, 42, 107, 0.05);
}

.bp-benefits li {
  position: relative;
  padding-left: 26px;
  font-size: 0.9rem;
  line-height: 1.45;
  color: var(--cs-navy);
}

.bp-benefits li::before {
  content: "\f26a";
  font-family: "bootstrap-icons";
  position: absolute;
  left: 0;
  top: 0.1em;
  font-size: 0.95rem;
  line-height: 1;
  color: var(--accent2);
}

/* --------------------------------------------------------------------------
   7. BRAND TOUCHPOINTS — horizontal gallery of 8 tiles
   -------------------------------------------------------------------------- */
.bp-touchpoints {
  padding-top: 10px;
}

.bp-touch__grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 14px;
}

.bp-touch {
  text-align: center;
}

.bp-touch__media {
  aspect-ratio: 4 / 3;
  border-radius: 12px;
  overflow: hidden;
  background: var(--cs-pale);
  border: 1px solid var(--cs-line);
  box-shadow: 0 6px 18px rgba(6, 42, 107, 0.06);
}

.bp-touch__media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
  transition: transform 0.6s var(--svc-ease);
}

.bp-touch:hover .bp-touch__media img {
  transform: scale(1.07);
}

.bp-touch__label {
  display: block;
  margin-top: 10px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.82rem;
  color: var(--cs-navy);
}

/* --------------------------------------------------------------------------
   8. RESPONSIVE
   Satkar breakpoints: laptop 992–1199 · tablet 576–991 · mobile ≤575
   -------------------------------------------------------------------------- */
@media (max-width: 1199.98px) {
  .bp-intro__grid {
    grid-template-columns: minmax(0, 1fr) 190px;
  }

  .bp-components {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    row-gap: 16px;
  }

  .bp-transform__grid {
    grid-template-columns: minmax(0, 1fr) 44px minmax(0, 1fr);
  }

  .bp-benefits {
    grid-column: 1 / -1;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  }

  .bp-touch__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px 14px;
  }
}

@media (max-width: 991.98px) {
  .bp-hero {
    padding-top: 30px;
  }

  .bp-hero__grid {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .bp-hero__visual {
    order: -1;
  }

  .bp-intro__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 26px;
  }

  .bp-intro__cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .bp-intro__aside {
    border-left: 0;
    border-top: 1px solid rgba(28, 111, 208, 0.25);
    padding: 22px 0 0;
    justify-content: center;
  }

  .bp-featured__card {
    grid-template-columns: 1fr;
  }

  .bp-featured__visual {
    order: -1;
    min-height: 0;
    aspect-ratio: 16 / 9;
  }

  .bp-featured__main {
    padding: 30px 28px 32px;
  }

  .bp-capabilities__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .bp-capabilities__hand {
    display: none;
  }
}

@media (max-width: 767.98px) {
  .bp-transform__grid {
    grid-template-columns: 1fr;
  }

  .bp-transform__arrow {
    justify-self: center;
    transform: rotate(90deg);
  }

  .bp-benefits {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 575.98px) {
  .bp-intro__cards {
    grid-template-columns: 1fr;
  }

  .bp-featured__main {
    padding: 26px 20px 28px;
  }

  .bp-featured__hand {
    font-size: 1.2rem;
  }

  .bp-featured .svc-btns {
    flex-direction: column;
    align-items: stretch;
  }

  .bp-featured .svc-btn {
    justify-content: center;
  }

  .bp-capabilities__grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .bp-cap {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr);
    column-gap: 16px;
    text-align: left;
    padding: 0;
  }

  .bp-cap__icon {
    grid-row: span 2;
    margin: 0;
  }

  .bp-touch__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 399.98px) {
  .bp-components {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* --------------------------------------------------------------------------
   9. REDUCED MOTION
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .bp-hero__img,
  .bp-featured__visual img,
  .bp-touch__media img,
  .bp-mini-card,
  .bp-cap__icon {
    transition: none;
  }

  .bp-hero__visual:hover .bp-hero__img,
  .bp-featured__card:hover .bp-featured__visual img,
  .bp-touch:hover .bp-touch__media img,
  .bp-mini-card:hover,
  .bp-mini-card[data-reveal].is-visible:hover {
    transform: none;
  }
}
