/* ============================================================
 * Inner Page Styles
 * Used by About, Contact, Service, and other inner pages.
 *
 * Sections:
 *   .page-hero          — Small hero banner with page title
 *   .page-section       — Generic content section
 *   .page-section--dark — Dark green background variant
 *   .page-section--light — Light background variant
 *   .page-section--green — Green background CTA variant
 *   .video-section      — Centered YouTube embed
 *   .contact-info       — Contact details layout
 *   .contact-form-wrapper — Form container
 * ============================================================ */

/* -----------------------------------------------
   Page Hero (inner page banner)
   ----------------------------------------------- */
.page-hero {
  position: relative;
  background-color: #044704;
  background-size: cover;
  background-position: center bottom;
  height: clamp(20vh, 30vh, 40vh);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

/* Overlay handled by .overlay-dark utility in style.css */

.page-hero .container {
  position: relative;
  z-index: 2;
}

.page-hero h1 {
  font-size: 2.5rem;
  font-weight: 800;
  color: #fff;
  margin: 0;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Short hero variant (used by article pages — was .article-hero) */
.page-hero--short {
  height: clamp(15vh, 25vh, 35vh);
  margin-bottom: 2rem;
}

.mobile-title {
  display: none !important;
}

.desktop-title {
  display: block;
  color: #fff;
  z-index: 4;
  margin-top: 8rem !important;
}

/* -----------------------------------------------
   Page Sections
   ----------------------------------------------- */
.page-section {
  padding: 50px 0 0;
}

.page-section--light {
  background-color: #fafaff;
}

/* Section headings */
.page-section h1 {
  font-size: 3rem;
  font-weight: 700;
  color: #044704;
  margin: 0 0 20px;
  text-align: center;
}

.page-section h2 {
  font-size: 2rem;
  font-weight: 700;
  color: #044704;
  margin: 0 0 20px;
  text-align: center;
}

/* Section content */
.page-section .section-content {
  max-width: 800px;
  margin: 0 auto;
  font-size: 1.05rem;
  line-height: 1.8;
  color: #575279;
}

/* -----------------------------------------------
   Video Section (YouTube embed)
   ----------------------------------------------- */
.video-section {
  padding: 40px 0;
  text-align: center;
}

.video-wrapper {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  border-radius: 5px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.video-wrapper iframe {
  width: 100%;
  height: 450px;
  display: block;
  border: none;
}

/* -----------------------------------------------
   Contact Info
   ----------------------------------------------- */
.contact-info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  text-align: center;
}

.contact-info-item {
  padding: 30px 20px;
  margin-bottom: 2rem;
  background: #fff;
  border-radius: 5px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.contact-info-item .contact-icon {
  width: 50px;
  height: 50px;
  margin: 0 auto 15px;
  color: #F58220;
}

.contact-info-item .contact-icon svg {
  width: 100%;
  height: 100%;
}

.contact-info-item h3 {
  font-size: 1.1rem;
  color: #044704;
  margin: 0 0 10px;
}

.contact-info-item p {
  font-size: 0.95rem;
  color: #575279;
  margin: 0;
}

.contact-info-item a {
  color: #F58220;
  text-decoration: none;
}

.contact-info-item a:hover {
  text-decoration: underline;
}

/* Contact form wrapper */
.contact-form-wrapper {
  max-width: 700px;
  margin: 0 auto 2rem;
  padding: 30px;
  background: #fff;
  border-radius: 5px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* -----------------------------------------------
   Search Results
   ----------------------------------------------- */
.search-results__listing {
  padding: var(--spacing-md) 0;
}

/* -----------------------------------------------
   Pager (search results, taxonomy listings)
   ----------------------------------------------- */
.pager {
  margin-top: var(--spacing-xl);
  padding-top: var(--spacing-lg);
  border-top: 1px solid var(--color-border);
}

.pager__items {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  list-style: none;
  padding: 0;
  margin: 0;
  flex-wrap: wrap;
}

.pager__item {
  margin: 0;
}

.pager__item a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-text);
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: all var(--transition-fast);
}

.pager__item a:hover {
  color: var(--color-accent);
  border-color: var(--color-accent);
  background: var(--color-bg-alt);
}

.pager__item.is-active a {
  color: var(--color-text-on-dark);
  background: var(--color-accent);
  border-color: var(--color-accent);
  cursor: default;
  pointer-events: none;
}

.pager__item--first a,
.pager__item--last a,
.pager__item--previous a,
.pager__item--next a {
  font-size: 0.85rem;
  padding: 0 14px;
}

/* Mobile: smaller pager items */
@media (max-width: 767px) {
  .pager__item a {
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    font-size: 0.9rem;
  }

  .pager__item--first a,
  .pager__item--last a,
  .pager__item--previous a,
  .pager__item--next a {
    padding: 0 10px;
    font-size: 0.8rem;
  }
}

/* -----------------------------------------------
   Taxonomy Pages
   ----------------------------------------------- */
.taxonomy-body {
  flex: 1;
  min-width: 0;
}

.taxonomy-term__description {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--color-text);
  margin-bottom: var(--spacing-lg);
  padding: var(--spacing-md);
  background: var(--color-bg-alt);
  border-radius: var(--radius-md);
  border-left: 4px solid var(--color-accent);
}

.taxonomy-term__articles {
  width: 100%;
}

/* -----------------------------------------------
   Responsive
   ----------------------------------------------- */
@media (max-width: 980px) {
  .page-hero {
    min-height: 200px;
  }

  .page-hero h1 {
    font-size: 2rem;
  }

  .video-wrapper iframe {
    height: 350px;
  }

  .contact-info-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767px) {
  .page-hero h1 {
    font-size: 1.5rem;
  }

  .video-wrapper iframe {
    height: 250px;
  }

  .page-section {
    padding: 30px 0;
  }

  .page-section h2 {
    font-size: 1.5rem;
  }

  .mobile-title {
    display: block !important;
    font-size: 2rem !important;
  }

  .desktop-title {
    display: none;
  }
}
