/* ============================
   PCIT COUNTY TEMPLATE
   ============================ */

button.county-option:active, button.county-option:focus {
    background: #f16c39 !important;
    color: #fff !important;
}

.county-template {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1rem;
    box-sizing: border-box;
}

body.single-county {
  background-color: #fdfdfc;
  font-family: 'outfit', Arial, sans-serif;
  color: #2d2d2d;
}

.header-detail {
    max-width: 1920px;
    text-align: center;
    position: relative;
    width: 100vw;
    margin-left: 50%;
    transform: translateX(-50%);
}

.pcit-header {
  padding: 0 1em;
  text-align: center;
}

.pcit-title {
    font-size: 3rem;
    font-weight: 900;
    color: #093c58;
    margin: 2rem 0;
}

.pcit-logo {
    max-width: 35%;
}

.county-intro {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1100px;
    margin: 4em auto;
    padding: 0 1em;
    gap: 2em;
}

.county-text {
  flex: 2;
	max-width: 800px;
}

.county-text p {
    font-size: 1.1em;
}

.county-name {
    font-size: 1.5rem;
    margin-bottom: 1rem;
	text-transform: uppercase;
}

.county-seal-wrap {
}

.county-seal {
  max-width: 200px;
}

.county-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 5em 7em;
    max-width: 100%;
    margin: 2rem 0 4em 0;
    padding: 0;
    align-items: flex-end;
    justify-items: flex-start;
}

.county-stats .stat-item:last-child {
  grid-column: span 2;
  align-items: flex-start;
  background: #f2f2f2;
  padding: 2em;
}
.stat-item {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.stat-value-p {
  text-align: left;
}

.stat-label h2 {
	font-size: 26px;
}

.stat-value {
  font-size: 40px;
  font-weight: 700;
  color: #000;
}

/* PDF Button */
.pdf-download-wrap {
    margin: 2rem 0;
    padding: 0;
    max-width: 800px;
}

.pdf-button {
  display: inline-block;
  background: #0075c9;
  color: white;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
}

a.pdfprnt-button.pdfprnt-button-pdf {
    display: inline-block;
    background: #0075c9;
    color: white;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
	padding: .7rem 3rem;
}

a.pdfprnt-button.pdfprnt-button-pdf:hover {
    display: inline-block;
    background: #f16c39;
    color: white;
}

a.pdfprnt-button.pdfprnt-button-pdf img  {
    display: none !important;
}

.pdf-button:hover {
  background: #f16c39;
	color: #fff;
}

.agency-callout {
    padding: 0;
    font-size: 20px;
    color: #000;
    max-width: 100%;
}

/* CTA Section with image */
.cta-section {
    margin-top: 2rem;
    text-align: center;
    position: relative;
    width: 100vw;
    margin-left: 50%;
    transform: translateX(-50%);
}

.cta-image {
  background-size: cover;
  background-position: center;
  min-height: 56vw;
}

.cta-text {
    background: #0075c9;
    color: white;
    font-size: 1.2rem;
    font-weight: 600;
    padding: 3em 1em 6em 1em;
}

.cta-text h2 {
    color: #fff;
    max-width: 60%;
    margin: 0 auto;
    font-size: 50px;
}

.cta-text p {
  margin: 0;
}

.pcit-footer {
  background: #007177;  /* teal background */
  color: #fff;
  padding: 3rem 1rem;
  width: 100vw;
  margin-left: 50%;
  transform: translateX(-50%);
	position: relative;
}

.footer-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: flex-end;
  gap: 2rem;
	position: relative;
}

.footer-left {
    max-width: 85%;
}

.footer-left h2 {
  font-size: 3rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
	color: #fff;
}

.footer-subtitle {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer-social {
  display: flex;
  gap: 0.75rem;
}

.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: transform 0.2s ease, background 0.2s ease;
}

.social-icon:hover {
  transform: scale(1.1);
}

.social-icon img {

}

.footer-logo img {
    width: 200px;
    display: block;
    margin: 0 auto;
    position: absolute;
    left: 45%;
    top: -70px;
}

.footer-right {
  text-align: right;
  font-size: 22px;
}

.footer-contact {
  margin-bottom: 1rem;
  line-height: 1.5;
}

.footer-copy {
  font-size: 22px;
}

.data-tools a {
	color: #fff;
}

@media (max-width: 768px) {
	.header-detail {
    display: none;
}
	.county-stats {
    grid-template-columns: 1fr;
    gap: 48px;
    justify-items: center;
	display: flex;
    flex-direction: column;
}
	.pdf-download-wrap {
    text-align: center;
}
	.cta-image {
    min-height: 56vw;
    width: 100%;
}
	.cta-text {
    padding: 2em 1em;
}
	.footer-logo {
    display: none;
}
	.footer-left {
    max-width: 100%;
}
	.cta-text h2 {
    max-width: 100%;
    font-size: 30px;
}
  .county-intro {
    flex-direction: column;
    text-align: center;
  }
  .county-seal-wrap {
    text-align: center;
  }
	  .footer-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-right {
    text-align: center;
  }

  .footer-logo img {
    margin: 2rem auto;
  }

  .footer-social {
    justify-content: center;
  }
}
