/* ==========================================================================
   Etmanskie Contracting — pages.css
   Shared styles for standalone subpages (services, portfolio, contact).
   Loaded instead of home.css — home.css stays homepage-only.
   ========================================================================== */

/* --- Page banner ----------------------------------------------------------
   Simpler stand-in for the homepage's video hero — a plain dark band with
   an eyebrow + title + optional intro line. */
.page-banner {
  background-color: var(--ink);
  color: var(--paper);
  padding-block: 72px;
}

.page-banner .section-title {
  color: var(--paper);
  margin-bottom: 18px;
}

.page-banner__intro {
  font-size: 16px;
  line-height: 1.75;
  color: var(--paper);
  opacity: 0.75;
  max-width: 60ch;
}

/* --- Prose content ---------------------------------------------------------
   Basic typography for content-heavy sections on service/contact pages. */
.page-content {
  padding-block: var(--section-y);
}

.page-content + .page-content {
  padding-top: 0;
}

.page-content h2 {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.1;
  margin-bottom: 18px;
}

.page-content h2:not(:first-child) {
  margin-top: 40px;
}

.page-content p {
  font-size: 16px;
  line-height: 1.75;
  opacity: 0.8;
  max-width: 70ch;
  margin-bottom: 20px;
}

.page-content ul {
  margin: 0 0 24px;
  padding-left: 20px;
  max-width: 70ch;
}

.page-content li {
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 8px;
}

/* --- Related services (cross-links on service pages) ----------------------- */
.related-services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--grid-gap);
  margin-top: 8px;
}

.related-service-card {
  display: block;
  background-color: var(--ink);
  padding: 28px 24px;
  text-decoration: none;
  transition: background-color var(--ease);
}

.related-service-card:hover {
  background-color: var(--red-dark);
}

.related-service-card h3 {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: var(--paper);
  text-transform: uppercase;
  margin-bottom: 8px;
}

.related-service-card p {
  font-size: 13px;
  line-height: 1.6;
  color: var(--paper);
  opacity: 0.7;
  margin: 0;
}

/* --- Standalone gallery grid (portfolio.php) -------------------------------
   Deliberately not shared with home.css's .work-grid/.work-tile so the
   homepage stylesheet stays untouched. */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--grid-gap);
}

.gallery-tile {
  position: relative;
  overflow: hidden;
  background-color: var(--red-dark);
}

.gallery-tile img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.gallery-tile:hover img {
  transform: scale(1.04);
}

.gallery-tile__tag {
  position: absolute;
  inset: auto 0 0 0;
  padding: 36px 16px 16px;
  background: linear-gradient(to top, rgba(38, 34, 35, 0.95), transparent);
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--red);
  text-transform: uppercase;
}

/* --- FAQ accordion (shared across service pages) ---------------------------
   Same component as home.css's .faq, ported here since it's identical
   generic subpage chrome, not page-specific content — same reasoning as
   .related-services living here. Deliberately not left in home.css so
   subpages don't have to load the homepage stylesheet just for this. */
.faq {
  max-width: 740px;
  margin-inline: auto;
}

@media (max-width: 480px) {
  .faq > .eyebrow,
  .faq > .section-title {
    text-align: center;
  }
}

.faq__list {
  display: flex;
  flex-direction: column;
  gap: var(--grid-gap);
  margin-top: 48px;
}

.faq__item {
  background-color: var(--ink);
  border-left: 4px solid transparent;
  transition: border-color 0.2s ease;
}

.faq__item[open] {
  border-left-color: var(--red);
}

.faq__item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 22px 26px;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  color: var(--paper);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1.3;
}

.faq__item summary::-webkit-details-marker {
  display: none;
}

.faq__item summary::after {
  content: "+";
  color: var(--red);
  font-size: 22px;
  font-weight: 300;
  line-height: 1;
  flex-shrink: 0;
}

.faq__item[open] summary::after {
  content: "\2212";
}

.faq__item p {
  font-size: 14px;
  line-height: 1.75;
  color: var(--paper);
  opacity: 0.72;
  padding: 0 26px 22px;
}

@media (max-width: 600px) {
  :root {
    --section-y: 64px;
  }

  .page-banner {
    padding-block: 56px;
  }
}
