/*
Theme Name: The Aperture
Theme URI: https://sparcglobal.ca
Description: Child of Twenty Twenty-Five for SPARC Insights. PHP-site chrome, Rundown cards, SPARC blue, Manrope and DM Sans.
Author: SPARC Global
Template: twentytwentyfive
Version: 1.1.0
Text Domain: sparc-aperture
*/

:root {
  --aperture-blue: #0070b0;
  --aperture-navy: #12223b;
  --aperture-ink: #111111;
  --aperture-muted: #555555;
  --aperture-line: #d0d7de;
  --aperture-ink-line: #222222;
  --aperture-wash: #e8eef3;
  --aperture-paper: #ffffff;
  --aperture-page: #e8e8e8;
  --aperture-footer-top: #071427;
  --aperture-footer-mid: #0c2341;
  --aperture-footer-end: #0f2f57;
}

body.aperture-insights {
  background: var(--aperture-page);
  color: var(--aperture-navy);
  font-family: "DM Sans", system-ui, sans-serif;
}

h1, h2, h3, h4,
.wp-block-site-title,
.wp-block-post-title,
.wp-block-heading {
  font-family: Manrope, system-ui, sans-serif;
  color: var(--aperture-navy);
  font-weight: 700;
}

a {
  color: var(--aperture-blue);
}

.wp-block-post-title a {
  color: var(--aperture-blue);
  text-decoration: none;
}

.wp-block-post-title a:hover,
a:hover {
  color: #005a8f;
}

.wp-site-blocks > header {
  margin: 0;
}

.aperture-site-header {
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid rgba(18, 34, 59, 0.12);
  position: relative;
  z-index: 40;
}

.aperture-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 1300px;
  margin: 0 auto;
  padding: 10px 24px;
  position: relative;
}

.aperture-logo {
  display: block;
  flex-shrink: 0;
}

.aperture-logo img {
  display: block;
  width: auto;
  height: auto;
  max-height: 58px;
  min-width: 120px;
}

.aperture-menu-toggle {
  display: none;
  margin-left: auto;
  border: 1px solid rgba(18, 34, 59, 0.18);
  background: #fff;
  color: var(--aperture-navy);
  font-family: Manrope, system-ui, sans-serif;
  font-size: 14px;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 8px;
}

.aperture-nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.aperture-nav-link,
.aperture-sub-toggle {
  font-family: Manrope, system-ui, sans-serif;
  font-size: 16px;
  font-weight: 500;
  color: var(--aperture-navy);
  background: none;
  border: 0;
  padding: 8px 14px;
  text-decoration: none;
  cursor: pointer;
}

.aperture-sub-toggle::after {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-left: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  vertical-align: middle;
}

.aperture-nav-link:hover,
.aperture-sub-toggle:hover,
.aperture-nav-item.is-current .aperture-nav-link {
  color: var(--aperture-blue);
}

.aperture-nav-item.has-sub {
  position: relative;
}

.aperture-nav-item.has-sub:has(.aperture-mega) {
  position: static;
}

.aperture-mega,
.aperture-sub {
  position: absolute;
  top: calc(100% + 8px);
  z-index: 50;
  background: #fff;
  border: 1px solid var(--aperture-line);
  border-radius: 12px;
  box-shadow: 0 18px 40px rgba(15, 35, 66, 0.12);
}

.aperture-mega[hidden],
.aperture-sub[hidden] {
  display: none !important;
}

.aperture-mega {
  left: 24px;
  right: 24px;
  width: auto;
  max-width: 920px;
  padding: 18px 20px 20px;
}

.aperture-sub {
  left: 0;
  min-width: 280px;
}

.aperture-mega-kicker {
  margin: 0 0 12px;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--aperture-blue);
  font-weight: 700;
}

.aperture-platform-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.aperture-platform-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px;
  border: 1px solid var(--aperture-line);
  border-radius: 10px;
  text-decoration: none;
  background: #f7fbfe;
}

.aperture-platform-card:hover {
  border-color: var(--aperture-blue);
}

.aperture-platform-card__title {
  font-family: Manrope, system-ui, sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--aperture-navy);
}

.aperture-platform-card__text {
  font-size: 13px;
  line-height: 1.45;
  color: var(--aperture-muted);
}

.aperture-sub {
  list-style: none;
  margin: 0;
  padding: 10px 0;
}

.aperture-sub a {
  display: block;
  padding: 8px 16px;
  color: var(--aperture-navy);
  text-decoration: none;
  font-size: 14px;
}

.aperture-sub a:hover {
  color: var(--aperture-blue);
  background: var(--aperture-wash);
}

.aperture-contact {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 8px;
  padding: 10px 18px;
  border-radius: 12px;
  background: var(--aperture-blue);
  color: #fff;
  font-family: Manrope, system-ui, sans-serif;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.aperture-contact:hover {
  color: #fff;
  background: #005a8f;
}

.aperture-rundown-card,
.wp-block-query .wp-block-post {
  background: var(--aperture-paper);
  border: 1px solid var(--aperture-ink-line);
  border-radius: 8px;
  padding: 18px 20px;
  margin: 0 0 20px;
}

.aperture-rundown-kicker {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--aperture-blue);
  margin: 0 0 8px;
  font-weight: 700;
}

.wp-block-post-excerpt p {
  font-size: 16px;
  line-height: 1.55;
  color: var(--aperture-ink);
}

.wp-block-post-date {
  color: var(--aperture-muted);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.wp-block-query-pagination a {
  font-family: Manrope, system-ui, sans-serif;
  font-weight: 600;
}

.aperture-site-footer {
  background: linear-gradient(145deg, var(--aperture-footer-top) 0%, var(--aperture-footer-mid) 48%, var(--aperture-footer-end) 100%);
  color: #deecfc;
  margin-top: 2rem;
}

.aperture-footer-inner {
  max-width: 1300px;
  margin: 0 auto;
  padding: 28px 24px 18px;
}

.aperture-footer-top {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.35fr);
  gap: 34px;
  padding-bottom: 22px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.aperture-footer-logo img {
  width: 168px;
  height: auto;
  filter: brightness(0) invert(1);
}

.aperture-footer-tagline {
  margin: 12px 0 0;
  font-family: Manrope, system-ui, sans-serif;
  font-size: 17px;
  font-weight: 700;
  color: #fff;
}

.aperture-footer-desc {
  margin: 12px 0 0;
  font-size: 15px;
  line-height: 1.7;
  max-width: 54ch;
  color: rgba(222, 236, 252, 0.88);
}

.aperture-footer-navs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px 28px;
}

.aperture-footer-col h2 {
  margin: 0 0 8px;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(191, 224, 255, 0.9);
}

.aperture-footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 7px;
}

.aperture-footer-col a {
  color: rgba(221, 238, 255, 0.9);
  text-decoration: none;
  font-size: 14px;
}

.aperture-footer-col a:hover {
  color: #fff;
}

.aperture-footer-bottom {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 18px;
  padding: 16px 4px 8px;
}

.aperture-footer-copy {
  margin: 0;
  font-size: 12.5px;
  color: rgba(222, 237, 255, 0.84);
}

.aperture-footer-links {
  display: flex;
  gap: 14px;
}

.aperture-footer-links a,
.aperture-footer-social a {
  color: #d7ecff;
  text-decoration: none;
  font-size: 13px;
}

.aperture-footer-social {
  list-style: none;
  margin: 0;
  padding: 0;
}

@media (max-width: 991px) {
  .aperture-menu-toggle {
    display: inline-flex;
  }

  .aperture-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: #fff;
    border-bottom: 1px solid var(--aperture-line);
    padding: 12px 16px 20px;
  }

  .aperture-site-header.is-open .aperture-nav {
    display: block;
  }

  .aperture-nav-list {
    flex-direction: column;
    align-items: stretch;
  }

  .aperture-mega,
  .aperture-sub {
    position: static;
    width: auto;
    box-shadow: none;
    margin: 8px 0 12px;
  }

  .aperture-platform-grid {
    grid-template-columns: 1fr;
  }

  .aperture-contact {
    margin: 8px 0 0;
  }

  .aperture-footer-top,
  .aperture-footer-navs,
  .aperture-footer-bottom {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    animation: none !important;
  }
}
