/* ==========================================================================
   JAT SITEWIDE CSS — 02-services-trust-about.css
   Service cover card, trust strip (glass panel), about highlight, about photo, merch product card

   Loaded right after Elementor's Site Settings CSS (see child functions.php),
   in file-name order 01 → 07. Keep blocks in order; add new blocks at the end
   of the relevant file under a "JAT — …" banner comment.
   ========================================================================== */

/* =========================================================
   JAT — SERVICES — SERVICE COVER CARD
   Base Card
   ========================================================= */

.service-cover-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;

  width: 100%;
  min-height: clamp(18rem, 24vw, 23rem);

  border: 1px solid var(--color-divider-inverse);
  border-radius: 16px;

  box-shadow: 0 20px 50px -24px rgba(0, 0, 0, 0.65);

  transition:
    transform 0.3s ease,
    border-color 0.3s ease,
    box-shadow 0.3s ease;
}

/* =========================================================
   JAT — SERVICES — SERVICE COVER CARD
   Dark Liquid Glass Overlay
   ========================================================= */

.service-cover-card::before {
  content: "";
  position: absolute;
  inset: 0;

  z-index: 1;
  pointer-events: none;

  background:
    radial-gradient(
      90% 70% at 0% 0%,
      color-mix(in srgb, var(--color-brand-accent) 20%, transparent),
      transparent 60%
    ),
    linear-gradient(
      180deg,
      rgba(0, 0, 0, 0.1) 0%,
      rgba(0, 0, 0, 0.26) 42%,
      rgba(0, 0, 0, 0.82) 100%
    );

  /* Default — lighter image blur */
  backdrop-filter: blur(1px) saturate(105%);

  -webkit-backdrop-filter: blur(1px) saturate(105%);

  transition:
    backdrop-filter 0.35s ease,
    -webkit-backdrop-filter 0.35s ease;
}

/* =========================================================
   JAT — SERVICES — SERVICE COVER CARD
   Stronger Glass Blur on Hover
   ========================================================= */

.service-cover-card:hover::before {
  backdrop-filter: blur(3px) saturate(110%);

  -webkit-backdrop-filter: blur(3px) saturate(110%);
}

/* =========================================================
   JAT — SERVICES — SERVICE COVER CARD IMAGE
   Background Image Layer
   ========================================================= */

.service-cover-card__image {
  position: absolute !important;
  inset: 0 !important;

  width: 100% !important;
  height: 100% !important;

  z-index: 0;

  overflow: hidden;

  padding: 0 !important;
  margin: 0 !important;
}

/* =========================================================
   JAT — SERVICES — SERVICE COVER CARD IMAGE
   Media + Hover Animation
   ========================================================= */

.service-cover-card__image img {
  display: block;

  width: 100% !important;
  height: 100% !important;

  max-width: none;

  object-fit: cover;
  object-position: center;

  margin: 0;

  transform: scale(1);

  transition: transform 0.45s ease;
}

.service-cover-card:hover .service-cover-card__image img {
  transform: scale(1.05);
}

/* =========================================================
   JAT — SERVICES — SERVICE COVER CARD CONTENT
   Foreground Content Layer
   ========================================================= */

.service-cover-card__content {
  position: relative;
  z-index: 2;

  width: 100%;
  min-width: 0;
}

/* =========================================================
   JAT — SERVICES — SERVICE COVER CARD NUMBER
   ========================================================= */

.service-cover-card__number {
  margin: 0;

  font-family: var(--font-family-heading);
  font-size: 0.75rem;
  font-weight: 800;
  line-height: 1.2;

  letter-spacing: 0.12em;
  text-transform: uppercase;

  color: var(--color-brand-accent);
}

/* =========================================================
   JAT — SERVICES — SERVICE COVER CARD TITLE
   ========================================================= */

.service-cover-card__title {
  margin: 0;

  color: var(--color-text-inverse);
}

/* =========================================================
   JAT — SERVICES — SERVICE COVER CARD DESCRIPTION
   ========================================================= */

.service-cover-card__description {
  margin: 0;

  color: var(--color-text-inverse-muted);
}

/* =========================================================
   JAT — SERVICES — SERVICE COVER CARD
   Hover Interaction
   ========================================================= */

.service-cover-card:hover {
  transform: translateY(-6px);

  border-color: rgba(255, 255, 255, 0.24);

  box-shadow: 0 28px 60px -24px rgba(0, 0, 0, 0.8);
}

/* =========================================================
   JAT — SERVICES — SERVICE COVER CARD — CINEMATIC VARIANT
   Use:  service-cover-card + service-cover-card--cinematic  (card)
         cinematic-filter                                      (card's image)
   Drops the red radial tint; the image's cinematic-filter does the
   grading. A lighter bottom fade stays so white text reads.
   ========================================================= */

.service-cover-card.service-cover-card--cinematic::before {
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 0.12) 45%,
    rgba(0, 0, 0, 0.7) 100%
  );
}

/* =========================================================
   JAT — TRUST STRIP
   Floating glass credibility component

   trust-strip      Outer wrapper
   trust-inner      Glass panel
   trust-item       Individual item Flexbox
   trust-item-text  Text widget (Elementor Global Class)
   ========================================================= */

/* =========================================================
   1. OUTER WRAPPER
   ========================================================= */

.trust-strip {
  position: relative;
  z-index: 5;

  width: 100%;
  margin-top: -46px;
}

/* =========================================================
   2. GLASS PANEL
   ========================================================= */

.trust-inner {
  position: relative;

  display: flex;
  flex-direction: row;
  flex-wrap: wrap;

  align-items: center;
  justify-content: space-between;

  box-sizing: border-box;

  width: 100%;
  height: auto;
  min-height: 0;

  column-gap: var(--space-fluid-md);
  row-gap: var(--space-fluid-sm);

  padding: 22px 32px;

  border: 1px solid var(--color-divider-inverse);
  border-radius: 16px;

  background: color-mix(in srgb, var(--color-text-inverse) 7%, transparent);

  -webkit-backdrop-filter: blur(18px) saturate(160%);

  backdrop-filter: blur(18px) saturate(160%);

  box-shadow: 0 20px 50px -20px
    color-mix(in srgb, var(--color-black) 35%, transparent);

  overflow: hidden;
}

/* =========================================================
   3. GLASS HIGHLIGHT
   ========================================================= */

.trust-inner::before {
  content: "";

  position: absolute;
  inset: 0;
  z-index: 0;

  pointer-events: none;
  border-radius: inherit;

  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--color-text-inverse) 8%, transparent) 0%,
    transparent 55%
  );
}

/* =========================================================
   4. TRUST ITEM
   Layout only — Elementor controls typography.

   Space for the dot is reserved using padding.
   ========================================================= */

.trust-inner .trust-item {
  position: relative;
  z-index: 1;

  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;

  align-items: center;
  justify-content: flex-start;

  box-sizing: border-box;

  flex: 0 1 auto;

  width: max-content;
  max-width: 100%;
  min-width: 0;

  margin: 0;

  padding: 0 0 0 calc(8px + var(--space-fluid-xxs, 8px));
}

/* =========================================================
   5. RED DOT
   Absolutely positioned beside the text.
   Cannot be pushed above it by flex direction.
   ========================================================= */

.trust-inner .trust-item::before {
  content: "";

  position: absolute;

  top: 50%;
  left: 0;

  transform: translateY(-50%);

  display: block;

  width: 8px;
  height: 8px;

  margin: 0;
  padding: 0;

  border-radius: 50%;
  background: var(--color-brand-accent);

  pointer-events: none;
}

/* =========================================================
   6. TEXT WIDGET LAYOUT
   No font, color, weight or size overrides.
   ========================================================= */

.trust-item > * {
  min-width: 0;
  max-width: 100%;

  flex: 0 1 auto;
}

.trust-item p {
  margin: 0;
}

/* =========================================================
   7. TABLET — 2 × 2
   ========================================================= */

@media (max-width: 1024px) {
  .trust-strip {
    margin-top: -40px;
  }

  .trust-inner {
    display: grid;

    grid-template-columns: repeat(2, minmax(0, 1fr));

    column-gap: var(--space-fluid-md);
    row-gap: 0;

    padding: 16px 24px;
  }

  .trust-inner .trust-item {
    width: 100%;
    max-width: 100%;
    min-width: 0;

    padding-top: 14px;
    padding-bottom: 14px;
  }

  /* Divider between rows */

  .trust-inner .trust-item:nth-child(n + 3) {
    border-top: 1px solid var(--color-divider-inverse);
  }
}

/* =========================================================
   8. MOBILE — STACKED
   ========================================================= */

@media (max-width: 767px) {
  .trust-strip {
    margin-top: -32px;
  }

  .trust-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr);

    gap: 0;

    padding: 6px 20px;

    border-radius: 14px;
  }

  .trust-inner .trust-item {
    width: 100%;
    max-width: 100%;

    padding: 15px 0 15px calc(7px + var(--space-fluid-xxs, 8px));
  }

  .trust-inner .trust-item::before {
    width: 7px;
    height: 7px;
  }

  /* Reset tablet dividers */

  .trust-inner .trust-item:nth-child(n + 3) {
    border-top: none;
  }

  /* Divider between every item */

  .trust-inner .trust-item + .trust-item {
    border-top: 1px solid var(--color-divider-inverse);
  }
}

/* =========================================================
   JAT — ABOUT HIGHLIGHT
   Bold supporting statement with accent rule
   ========================================================= */

.about-highlight {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 0;
  color: var(--color-text-primary);
  font-family: var(--font-family-body);
  font-size: var(--font-size-body-base);
  font-weight: 800;
  line-height: 1.15;

  letter-spacing: -0.01em;
  text-transform: uppercase;
}

/* Red accent line */
.about-highlight::before {
  content: "";
  display: block;
  flex: 0 0 auto;
  width: 26px;
  height: 3px;
  background: var(--color-brand-accent);
}

/* Remove Elementor text spacing */
.about-highlight p,
.about-highlight span {
  margin: 0;
  padding: 0;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
}

/* Tablet */
@media (max-width: 1024px) {
  .about-highlight {
    gap: 16px;
    font-size: 20px;
  }
}

/* Mobile */
@media (max-width: 767px) {
  .about-highlight {
    gap: 14px;

    font-size: var(--font-size-body-base);
    line-height: 1.2;
  }

  .about-highlight::before {
    width: 22px;
    height: 3px;
  }
}

/* =========================================================
   JAT — ABOUT PHOTO
   About-section image card + caption
   ========================================================= */

/* ---------------------------------------------------------
   MAIN IMAGE CARD
   Elementor class: about-photo
   --------------------------------------------------------- */

.about-photo {
  position: relative;

  width: 100%;
  aspect-ratio: 4 / 5;

  min-height: 0;

  border-radius: 18px;

  background-color: var(--color-background-dark);
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;

  overflow: hidden;
  isolation: isolate;
}

/* ---------------------------------------------------------
   PHOTO OVERLAY
   Adds depth and keeps caption readable
   --------------------------------------------------------- */

.about-photo::after {
  content: "";

  position: absolute;
  inset: 0;
  z-index: 1;

  pointer-events: none;

  background: linear-gradient(
    180deg,
    transparent 42%,
    color-mix(in srgb, var(--color-black) 18%, transparent) 68%,
    color-mix(in srgb, var(--color-black) 55%, transparent) 100%
  );
}

/* ---------------------------------------------------------
   CAPTION CARD
   Elementor class: about-photo__caption
   --------------------------------------------------------- */

.about-photo__caption {
  position: absolute;

  left: 24px;
  right: 24px;
  bottom: 24px;

  z-index: 3;

  display: flex;
  flex-direction: column;
  align-items: flex-start;

  gap: 3px;

  padding: 18px 20px;

  border: 1px solid var(--color-divider-inverse);
  border-radius: 12px;

  background: color-mix(in srgb, var(--color-background-dark) 74%, transparent);

  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);

  box-shadow: 0 12px 32px -20px
    color-mix(in srgb, var(--color-black) 70%, transparent);
}

/* ---------------------------------------------------------
   CAPTION TITLE
   Elementor class: about-photo__title
   --------------------------------------------------------- */

.about-photo__title {
  margin: 0;

  color: var(--color-text-inverse);

  font-family: var(--font-family-body);
  font-size: 15px;
  font-weight: 800;
  line-height: 1.2;

  letter-spacing: -0.01em;
}

/* ---------------------------------------------------------
   CAPTION META
   Elementor class: about-photo__meta
   --------------------------------------------------------- */

.about-photo__meta {
  margin: 0;

  color: var(--color-text-inverse-muted);

  font-family: var(--font-family-body);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
}

/* Remove Elementor paragraph margins */

.about-photo__title p,
.about-photo__title span,
.about-photo__meta p,
.about-photo__meta span {
  margin: 0;
  padding: 0;

  color: inherit;
  font: inherit;
}

/* =========================================================
   OPTIONAL PLACEHOLDER STATE
   Use class: about-photo is-placeholder
   Remove "is-placeholder" when real photography is added.
   ========================================================= */

.about-photo.is-placeholder {
  background:
    radial-gradient(
      80% 60% at 8% 5%,
      color-mix(in srgb, var(--color-brand-accent) 28%, transparent),
      transparent 70%
    ),
    linear-gradient(145deg, var(--color-background-dark), var(--color-black));
}

/* Subtle diagonal texture used only on placeholder */

.about-photo.is-placeholder::before {
  content: "";

  position: absolute;
  inset: 0;
  z-index: 0;

  pointer-events: none;

  background-image: repeating-linear-gradient(
    115deg,
    color-mix(in srgb, var(--color-text-inverse) 4%, transparent) 0,
    color-mix(in srgb, var(--color-text-inverse) 4%, transparent) 1px,
    transparent 1px,
    transparent 90px
  );
}

/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 1024px) {
  .about-photo {
    aspect-ratio: 4 / 5;
  }

  .about-photo__caption {
    left: 20px;
    right: 20px;
    bottom: 20px;

    padding: 16px 18px;
  }
}

/* =========================================================
   MOBILE
   Wider crop works better once columns stack
   ========================================================= */

@media (max-width: 767px) {
  .about-photo {
    aspect-ratio: 4 / 3;

    border-radius: 16px;
  }

  .about-photo__caption {
    left: 16px;
    right: 16px;
    bottom: 16px;

    padding: 14px 16px;

    border-radius: 10px;
  }

  .about-photo__title {
    font-size: 14px;
  }

  .about-photo__meta {
    font-size: 11px;
  }
}

/* =========================================================
   JAT — MERCH — PRODUCT CARD
   ========================================================= */

.merch-product-card {
  aspect-ratio: 1 / 1;
}
