/* Panjiea, Inc. - static site styles
   Palette carried over from the original WordPress theme:
   accent blue #02009e, footer charcoal #57595b / #505153, page bg #f7f7f7 */

:root {
  --color-accent: #02009e;
  --color-accent-hover: #291638;
  --color-text: #333333;
  --color-heading: #000000;
  --color-muted: #666666;
  --color-border: #bcbec0;
  --color-bg: #f7f7f7;
  --color-footer: #57595b;
  --color-footer-dark: #505153;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-heading: "Oswald", var(--font-body);
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  color: var(--color-text);
  background: var(--color-bg);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--color-heading);
  margin: 0 0 15px;
}

h1 { font-size: 2.5rem; line-height: 1.1; }
h2 { font-size: 1.75rem; line-height: 1.2; }
h3 { font-size: 1.375rem; line-height: 1.25; }

p, li {
  font-size: 1rem;
  letter-spacing: .1px;
}

a {
  color: var(--color-accent);
  text-decoration: underline;
}

a:hover {
  color: var(--color-accent-hover);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul, ol {
  padding-left: 1.25rem;
}

hr {
  border: 0;
  border-top: 1px solid #e1e1e1;
  margin: 40px 0;
}

/* Skip link */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: #fff;
  color: var(--color-accent);
  padding: 10px 16px;
  z-index: 100;
}

.skip-link:focus {
  left: 10px;
  top: 10px;
}

/* Header */
.site-header {
  background-color: #fff;
  border-bottom: 1px solid var(--color-border);
}

.site-header__banner {
  display: block;
  width: 100%;
  height: 180px;
  object-fit: cover;
}

@media (min-width: 850px) {
  .site-header__banner { height: 240px; }
}

@media (min-width: 1024px) {
  .site-header__banner { height: 320px; }
}

/* Nav */
.site-nav {
  border-bottom: 1px solid var(--color-border);
  background: #fff;
}

.nav-inner {
  max-width: 985px;
  margin: 0 auto;
  display: flex;
  align-items: center;
}

.nav-toggle {
  display: none;
  margin: 8px 10px;
  padding: 5px 10px;
  font-size: 28px;
  line-height: 1;
  background: none;
  border: 1px solid transparent;
  color: var(--color-accent);
  cursor: pointer;
}

.main-nav {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  width: 100%;
}

.main-nav li {
  flex: 1 1 auto;
  text-align: center;
}

.main-nav a {
  display: block;
  padding: 0 20px;
  line-height: 44px;
  font-size: 11px;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 1px;
  text-decoration: none;
  color: #666;
  border-right: 1px solid var(--color-border);
  white-space: nowrap;
}

.main-nav li:first-child a {
  border-left: 1px solid var(--color-border);
}

.main-nav a:hover,
.main-nav a[aria-current="page"] {
  background-color: #f0f0f0;
  color: var(--color-accent);
}

@media (max-width: 849px) {
  .nav-toggle { display: block; }
  .main-nav { display: none; flex-direction: column; }
  .main-nav.is-open { display: flex; }
  .main-nav li { width: 100%; }
  .main-nav a { border-right: 0; border-bottom: 1px solid var(--color-border); line-height: 40px; }
}

/* Layout */
.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}

.page-layout {
  max-width: 1140px;
  margin: 0 auto;
  padding: 24px 20px 60px;
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  align-items: flex-start;
}

.page-main {
  flex: 1 1 620px;
  min-width: 0;
  background: #fff;
  padding: 30px;
  border: 1px solid #e5e5e5;
}

.page-banner-img {
  width: 100%;
  max-height: 200px;
  object-fit: cover;
  margin-bottom: 25px;
  border: 1px solid #e5e5e5;
}

.page-sidebar {
  flex: 0 1 280px;
  min-width: 240px;
}

.widget {
  background: #fff;
  border: 1px solid #e5e5e5;
  padding: 18px 20px;
  margin-bottom: 20px;
}

.widget h3 {
  font-size: 1.1rem;
  margin-bottom: 12px;
}

.widget ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.widget li {
  margin: 0 0 14px;
}

.widget li:last-child {
  margin-bottom: 0;
}

.featured-link {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #000;
}

.featured-link img {
  width: 56px;
  height: 56px;
  object-fit: cover;
  flex: 0 0 auto;
}

.featured-link span {
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.3;
}

.widget address {
  font-style: normal;
  line-height: 1.6;
}

/* Child pages list (used on Solutions) */
.child-pages {
  list-style: none;
  margin: 25px 0 0;
  padding: 0;
  border-top: 1px solid #e1e1e1;
}

.child-pages li {
  border-bottom: 1px solid #e1e1e1;
}

.child-pages a {
  display: block;
  padding: 15px 5px;
  text-decoration: none;
  color: var(--color-accent);
  font-size: 1.1rem;
  font-weight: 600;
}

.child-pages a:hover {
  background: rgba(2, 0, 158, 0.06);
}

/* Home masonry-ish grid */
.home-grid {
  max-width: 985px;
  margin: 20px auto 0;
  padding: 0 20px 40px;
  display: grid;
  gap: 15px;
  grid-template-columns: 1fr;
}

@media (min-width: 650px) {
  .home-grid { grid-template-columns: 1fr 1fr; }
}

.grid-card {
  display: block;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.2);
  text-decoration: none;
  overflow: hidden;
  position: relative;
  min-height: 260px;
}

.grid-card img {
  width: 100%;
  height: 260px;
  object-fit: cover;
}

.grid-card figcaption {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  text-align: center;
  color: #fff;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 600;
  background: rgba(2, 0, 60, 0.35);
}

.grid-card--body {
  padding: 18px;
}

.grid-card--body h2 {
  font-size: 1.1rem;
  margin-top: 12px;
}

.home-contact-card {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.2);
  padding: 20px;
}

.home-contact-card h3 {
  margin-bottom: 10px;
}

/* Stats page */
.stat-list {
  list-style: none;
  margin: 20px 0;
  padding: 0;
}

.stat-list li {
  padding: 10px 0;
  border-bottom: 1px solid #e1e1e1;
  font-size: 1.05rem;
}

/* Affiliations */
.affiliation-group {
  margin-bottom: 25px;
}

.affiliation-group h3 {
  border-bottom: 2px solid var(--color-accent);
  padding-bottom: 6px;
  margin-bottom: 12px;
}

/* Testimonial */
blockquote.testimonial {
  margin: 0 0 20px;
  padding-left: 20px;
  border-left: 4px solid var(--color-accent);
  font-size: 1.05rem;
}

.testimonial-attribution {
  font-weight: 700;
}

/* Video embed */
.video-embed {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  margin-bottom: 20px;
}

.video-embed iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Footer */
.site-footer {
  background-color: var(--color-footer);
  padding: 40px 0 35px;
}

.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 20px;
  justify-content: space-between;
}

.site-footer img {
  max-width: 220px;
  height: auto;
}

.footer-nav {
  list-style: none;
  margin: 0 0 10px -8px;
  padding: 20px 0 10px 0;
}

.footer-nav li {
  display: inline-block;
}

.footer-nav a {
  display: block;
  color: #fff;
  text-decoration: none;
  text-transform: uppercase;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: .5px;
  padding: 0 8px;
}

.site-description {
  max-width: 420px;
  color: var(--color-border);
  font-size: 14px;
  line-height: 1.57;
  margin: 0;
}

.site-colophon {
  background-color: var(--color-footer-dark);
  color: var(--color-border);
  margin: 0;
  padding: 15px 20px;
  text-align: right;
  font-size: 13px;
}
