/**
 * resources.html — layout (iframe chrome, intro, resources-specific grid/hero tweaks)
 * Loads after services.css; uses body.page-resources.
 */

body.page-resources {
  --resources-header-h: 82px;
  --resources-footer-h: 286px;
}

body.page-resources .visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

body.page-resources #header {
  display: none;
}

body.page-resources .header-spacer {
  display: none;
}

body.page-resources .header-embed {
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  line-height: 0;
}

body.page-resources .header-frame {
  width: 100%;
  height: var(--resources-header-h);
  border: 0;
  display: block;
  background: transparent;
}

body.page-resources .full-footer-embed {
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  line-height: 0;
  margin-top: 30px;
}

body.page-resources .full-footer-frame {
  width: 100%;
  height: var(--resources-footer-h);
  border: 0;
  display: block;
  background: transparent;
}

body.page-resources main#main-content {
  contain: layout;
  min-height: 100vh;
}

body.page-resources .breadcrumb-wrapper,
body.page-resources .sitemap-section {
  contain: layout;
}

/* Shorter hero than default services.css 50vh */
body.page-resources .hero-services {
  min-height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  contain: layout paint;
  transform: translateZ(0);
}

body.page-resources .hero-services h1 {
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  contain: layout;
}

/* Intro */
body.page-resources .resources-intro-section {
  padding: 8px 0 0;
}

body.page-resources .resources-intro {
  max-width: 720px;
  margin: 0 auto 36px;
}

body.page-resources .resources-intro p {
  margin: 0 0 14px;
  color: var(--text-muted, #475569);
  font-size: 1rem;
  line-height: 1.65;
}

body.page-resources .resources-intro p:last-child {
  margin-bottom: 0;
}

body.page-resources .resources-intro strong {
  color: var(--text-dark, #0f172a);
  font-weight: 600;
}

/* Card grid: link styling + icon/meta (services.css has base grid) */
body.page-resources .sitemap-section {
  min-height: 400px;
}

body.page-resources .sitemap-card {
  min-height: 62px;
  text-decoration: none;
  transition: none;
}

body.page-resources .sitemap-card i {
  min-width: 24px;
  text-align: center;
  font-size: 1.25rem;
  color: var(--brand-primary, #1e40af);
}

body.page-resources .sitemap-card span {
  font-weight: 700;
}

body.page-resources .sitemap-card small {
  display: block;
  color: var(--text-muted, #64748b);
  font-weight: 600;
  margin-top: 2px;
}

/* Floating actions */
body.page-resources .float-icon {
  position: fixed;
  bottom: 12px;
  width: 68px;
  height: 68px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-decoration: none;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.28);
  z-index: 9999;
}

body.page-resources .float-wa {
  left: 14px;
  background: #25d366;
  font-size: 36px;
}

body.page-resources .float-call {
  right: 14px;
  background: #1d4ed8;
  font-size: 24px;
}

@media (max-width: 768px) {
  body.page-resources .container {
    padding: 0 20px;
  }

  body.page-resources .hero-services {
    min-height: 120px;
  }

  body.page-resources .breadcrumb-wrapper {
    min-height: 48px;
  }

  body.page-resources .sitemap-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
  }

  body.page-resources .sitemap-card {
    padding: 12px 10px;
    gap: 6px;
    min-height: 74px;
    min-width: 0;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  body.page-resources .sitemap-card i {
    min-width: 0;
    font-size: 1.05rem;
  }

  body.page-resources .sitemap-card span {
    font-size: 0.78rem;
    line-height: 1.15;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  body.page-resources .sitemap-card small {
    font-size: 0.7rem;
    line-height: 1.15;
  }

  body.page-resources .sitemap-card > div {
    min-width: 0;
  }

  body.page-resources .sitemap-section {
    padding: 36px 0;
  }

  body.page-resources .header-frame {
    height: 74px;
  }

  body.page-resources .full-footer-frame {
    height: 330px;
  }

  body.page-resources .float-icon {
    width: 60px !important;
    height: 60px !important;
    bottom: 10px !important;
  }

  body.page-resources .float-wa {
    left: 10px !important;
    font-size: 31px !important;
  }

  body.page-resources .float-call {
    right: 10px !important;
    font-size: 22px !important;
  }
}
