/* ==========================================================================
   Veridian — supplemental CSS
   theme.json covers color / type / spacing tokens; this file covers the
   bespoke visual treatments (hard shadows, offset frames, badges) that
   aren't expressible as theme.json settings, following the same split
   Twenty Twenty-Four uses between theme.json and small helper stylesheets.
   ========================================================================== */

.veridian-opacity-70 {
  opacity: 0.7;
}

.veridian-opacity-50 {
  opacity: 0.5;
}

/* Footer contrast fix: theme.json's global link color (primary/dark-green)
   otherwise wins over the footer's inherited light text, making links
   invisible against the footer's own dark-green background. */
.veridian-footer,
.veridian-footer p,
.veridian-footer li,
.veridian-footer .wp-block-heading,
.veridian-footer .wp-block-site-title,
.veridian-footer .wp-block-site-title a {
  color: var(--wp--preset--color--on-primary) !important;
}

.veridian-footer a {
  color: var(--wp--preset--color--on-primary) !important;
  text-decoration: none;
}

.veridian-footer a:hover,
.veridian-footer a:focus {
  color: var(--wp--preset--color--secondary-fixed) !important;
  text-decoration: underline;
}

/* Fixed header needs body offset so content isn't hidden underneath it */
body {
  padding-top: 80px;
}

.veridian-header {
  position: fixed;
  top: 0;
  inset-inline: 0;
  z-index: 999;
  border-bottom: 2px solid var(--wp--preset--color--secondary-fixed);
}

.veridian-header .wp-block-group {
  max-width: var(--wp--style--global--content-size);
  margin-inline: auto;
  padding-block: var(--wp--preset--spacing--20);
  padding-inline: var(--wp--preset--spacing--35);
}

/* Eyebrow / kicker label used on hero + mission sections */
.veridian-eyebrow {
  display: inline-block;
  padding: 0.5rem 1rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-left: 4px solid currentColor;
  margin-bottom: var(--wp--preset--spacing--30);
}

.veridian-highlight {
  background: none;
  color: var(--wp--preset--color--secondary-fixed);
}

.veridian-hero__title {
  text-wrap: balance;
}

.veridian-hero__lede {
  border-left: 2px solid var(--wp--preset--color--secondary-fixed);
  padding-left: var(--wp--preset--spacing--30);
  opacity: 0.9;
}

/* Hero two-column split */
.veridian-hero__columns {
  gap: 0 !important;
  min-height: 700px;
}

.veridian-hero__content-col {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  height: stretch;
}

.veridian-hero__content-col::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.2;
  background-image: radial-gradient(circle at 20% 50%, rgba(166, 244, 112, 0.4) 0%, transparent 50%);
}

.veridian-hero__media-col {
  position: relative;
  min-height: 700px;
  align-self: stretch;
}

/* Reversed diagonal clip on the hero photo — matches code.html's .clip-diagonal-reverse */
.clip-diagonal-reverse {
  clip-path: polygon(0 10%, 100% 0, 100% 100%, 0 100%);
}

.veridian-hero__image {
  position: absolute;
  inset: 0;
  margin: 0;
  height: 100%;
}

.veridian-hero__image img {
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  object-fit: cover !important;
  object-position: center;
}

.veridian-hero__image::after {
  content: "";
  position: absolute;
  inset: 0;
  background-color: var(--wp--preset--color--primary);
  opacity: 0.4;
  mix-blend-mode: multiply;
}

/* Hard-shadow "offset" button style, registered via functions.php as a
   block style variation so editors can toggle it in the block sidebar */
.wp-block-button.is-style-offset .wp-block-button__link {
  box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.5);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.wp-block-button.is-style-offset .wp-block-button__link:hover {
  transform: translate(3px, 3px);
  box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.5);
}

.wp-block-button.is-style-outline .wp-block-button__link {
  background: transparent;
  border: 4px solid var(--wp--preset--color--primary);
  color: var(--wp--preset--color--primary);
  box-shadow: 6px 6px 0 rgba(0, 45, 28, 0.2);
  transition: all 0.2s ease;
}

.wp-block-button.is-style-outline .wp-block-button__link:hover {
  background: var(--wp--preset--color--primary);
  color: var(--wp--preset--color--on-primary);
  transform: translate(6px, 6px);
  box-shadow: 0 0 0 rgba(0, 45, 28, 0);
}

/* Service / solution cards: invert to primary color on hover */
.veridian-solution-card {
  border-radius: var(--wp--custom--rounded--default, 0.5rem);
  transition: background-color 0.4s ease, color 0.4s ease;
}

.veridian-solution-card:hover {
  background-color: var(--wp--preset--color--primary) !important;
  color: var(--wp--preset--color--on-primary);
}

.veridian-solution-card:hover h3,
.veridian-solution-card:hover p,
.veridian-solution-card:hover a {
  color: var(--wp--preset--color--on-primary) !important;
}

.veridian-icon-box {
  width: 64px;
  height: 64px;
  border-radius: var(--wp--custom--rounded--default, 0.5rem);
  font-size: 1.75rem;
  margin-bottom: var(--wp--preset--spacing--30);
}

/* Offset picture frame used in the Mission section */
.veridian-offset-frame {
  position: relative;
  margin: 0 0 0 24px;
}

.veridian-offset-frame::before {
  content: "";
  position: absolute;
  top: 24px;
  left: -24px;
  width: 100%;
  height: 100%;
  border: 4px solid var(--wp--preset--color--primary);
  border-radius: var(--wp--custom--rounded--md, 0.75rem);
  z-index: 0;
}

.veridian-offset-frame > img {
  position: relative;
  z-index: 1;
  border-radius: var(--wp--custom--rounded--md, 0.75rem);
  width: 100% !important;
  height: auto !important;
  max-width: none !important;
  aspect-ratio: 4 / 3;
  object-fit: cover !important;
}

/* Keep WordPress's own emoji sizing intact inside the caption text
   (e.g. the leaf icon) — don't let the frame's image rule above catch it. */
.veridian-offset-frame .wp-element-caption img.emoji {
  width: 1em !important;
  height: 1em !important;
  margin: 0 0.07em !important;
  vertical-align: -0.1em !important;
  border-radius: 0 !important;
  aspect-ratio: auto !important;
  object-fit: contain !important;
}

.veridian-offset-frame .wp-element-caption {
  position: relative;
  z-index: 2;
  margin-top: -2.5rem;
  margin-left: 1.5rem;
  margin-right: -1.5rem;
  display: inline-block;
  background: var(--wp--preset--color--primary);
  color: var(--wp--preset--color--on-primary);
  padding: 1rem 1.25rem;
  border-left: 4px solid var(--wp--preset--color--secondary-fixed);
  font: 700 0.875rem/1.2 var(--wp--preset--font-family--inter);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Checklist rows in the Mission section */
.veridian-checklist {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--wp--preset--spacing--20);
}

.veridian-checklist li {
  background: var(--wp--preset--color--background);
  border-left: 4px solid var(--wp--preset--color--primary);
  padding: var(--wp--preset--spacing--20);
  text-transform: uppercase;
  font-size: var(--wp--preset--font-size--label-md);
  font-weight: 700;
}

/* Stat counters */
.veridian-stats__row {
  text-align: center;
}

.veridian-stats__row .wp-block-column {
  border-inline-start: 2px solid rgba(255, 255, 255, 0.2);
}

.veridian-stats__row .wp-block-column:first-child {
  border-inline-start: none;
}

@media (max-width: 781px) {
  /* Hero: stop stacking the image as its own block below the text.
     Instead, the image becomes a full-bleed background sitting behind
     the content column (matches the desktop "split" feel on mobile). */
  .veridian-hero__columns.is-not-stacked-on-mobile {
    flex-wrap: nowrap;
    position: relative;
    min-height: 560px;
  }

  .veridian-hero__content-col {
    position: relative;
    z-index: 2;
    flex-basis: 100% !important;
    width: 100%;
    min-height: 560px;
  }

  .veridian-hero__media-col {
    position: absolute;
    inset: 0;
    z-index: 1;
    flex-basis: 100% !important;
    width: 100%;
    height: 100%;
    min-height: 0;
  }

  /* Stronger overlay on mobile since text now sits directly on top of
     the photo instead of beside it — keeps contrast/legibility high. */
  .veridian-hero__image::after {
    opacity: 0.65;
  }

  .clip-diagonal-reverse {
    clip-path: none;
  }

  .veridian-stats__row .wp-block-column {
    border-inline-start: none;
    border-top: 2px solid rgba(255, 255, 255, 0.2);
    padding-top: var(--wp--preset--spacing--30);
  }

  .veridian-stats__row .wp-block-column:first-child {
    border-top: none;
    padding-top: 0;
  }

  .veridian-offset-frame {
    margin-left: 0;
  }

  .veridian-offset-frame .wp-element-caption {
    margin-left: 0;
  }
}