/* Joseph K Creative — service & pricing pages */

/* ── Page shell ──────────────────────────────────────────────── */

.service-page main { overflow: hidden; }

.service-page main > section {
  padding-left: max(clamp(20px, 5vw, 72px), calc((100vw - 1280px) / 2));
  padding-right: max(clamp(20px, 5vw, 72px), calc((100vw - 1280px) / 2));
}

.service-page .nav-links a[aria-current="page"] { color: var(--forest-mid); }

/* ── Hero ────────────────────────────────────────────────────── */

.service-hero {
  border-top: 0;
  padding-top: clamp(140px, 13vw, 184px);
  padding-bottom: clamp(70px, 8vw, 104px);
  background:
    radial-gradient(circle at 82% 18%, rgba(59, 95, 122, 0.1), transparent 26rem),
    var(--canvas);
}

.service-hero::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, var(--forest), var(--mineral));
}

.service-hero { position: relative; }

/* The two-column header grid is for section headings, not the hero. */
.service-page .service-hero > .reveal:first-child {
  display: block;
  width: min(100%, 820px);
  margin-left: 0;
  margin-right: 0;
}

.service-hero h1 {
  font-family: var(--display);
  font-size: clamp(2.5rem, 5.4vw, 4.4rem);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
  max-width: 15ch;
}

.service-hero h1 em {
  font-style: italic;
  color: var(--forest-mid);
}

.service-hero .hero-sub { max-width: 620px; }

.hero-pricehint {
  margin-top: 28px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--forest-mid);
}

.hero-pricehint a { color: inherit; }

/* ── Pricing grid ────────────────────────────────────────────── */

.pricing-grid {
  display: grid;
  gap: 20px;
  margin-top: clamp(44px, 5vw, 64px);
}

.pricing-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pricing-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.tier-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 30px 26px 28px;
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.tier-card:hover {
  border-color: var(--forest-mid);
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.tier-featured {
  border-color: var(--forest);
  border-width: 1.5px;
  box-shadow: var(--shadow);
}

.tier-badge {
  position: absolute;
  top: -11px;
  left: 26px;
  padding: 4px 12px;
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white);
  background: var(--forest);
  border-radius: 100px;
}

.tier-card h3 {
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mineral);
  margin-bottom: 16px;
}

.tier-price {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 4px;
}

.tier-price strong {
  font-family: var(--display);
  font-size: clamp(2rem, 3vw, 2.6rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.03em;
}

.tier-price-secondary {
  padding-top: 10px;
  margin-top: 8px;
  border-top: 1px dashed var(--rule);
}

.tier-price-secondary strong {
  font-size: clamp(1.3rem, 2vw, 1.6rem);
  color: var(--forest-mid);
}

.tier-unit {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.tier-summary {
  margin: 18px 0 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--rule);
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 300;
  line-height: 1.65;
}

.tier-features {
  list-style: none;
  display: grid;
  gap: 10px;
  margin-bottom: 26px;
}

.tier-features li {
  position: relative;
  padding-left: 22px;
  font-size: 0.88rem;
  font-weight: 300;
  line-height: 1.55;
}

.tier-features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 9px;
  height: 5px;
  border-left: 1.5px solid var(--forest-mid);
  border-bottom: 1.5px solid var(--forest-mid);
  transform: rotate(-45deg);
}

.tier-cta {
  margin-top: auto;
  width: 100%;
}

.pricing-note {
  max-width: 720px;
  margin-top: 28px;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 300;
  line-height: 1.7;
}

.pricing-note-muted {
  margin-top: 10px;
  font-size: 0.78rem;
  opacity: 0.8;
}

/* ── FAQ ─────────────────────────────────────────────────────── */

.faq-list {
  display: grid;
  gap: 0;
  margin-top: clamp(40px, 5vw, 60px);
  border-top: 1px solid var(--rule);
}

.faq-item { border-bottom: 1px solid var(--rule); }

.faq-item summary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 0;
  cursor: pointer;
  list-style: none;
  font-family: var(--display);
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: -0.01em;
  transition: color 0.2s;
}

.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--forest-mid); }

.faq-item summary::after {
  content: "";
  flex: none;
  width: 12px;
  height: 12px;
  margin-top: 8px;
  border-right: 1.5px solid var(--forest-mid);
  border-bottom: 1.5px solid var(--forest-mid);
  transform: rotate(45deg);
  transition: transform 0.25s;
}

.faq-item[open] summary::after { transform: rotate(-135deg); margin-top: 12px; }

.faq-answer {
  padding-bottom: 24px;
  max-width: 760px;
}

.faq-answer p {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 300;
  line-height: 1.8;
}

/* ── Services hub cards ──────────────────────────────────────── */

.service-grid,
.related-grid {
  display: grid;
  gap: 20px;
  margin-top: clamp(40px, 5vw, 60px);
}

.service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.related-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* An odd card count would otherwise leave a half-width orphan on the last row. */
.service-grid > :last-child:nth-child(odd),
.related-grid > :last-child:nth-child(odd) { grid-column: 1 / -1; }

.service-card,
.related-card {
  display: flex;
  flex-direction: column;
  padding: 28px 26px;
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  text-decoration: none;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.service-card:hover,
.related-card:hover {
  border-color: var(--forest-mid);
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.service-card-price,
.related-price {
  display: inline-block;
  align-self: flex-start;
  margin-bottom: 16px;
  padding: 5px 12px;
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--forest-mid);
  background: var(--forest-soft);
  border-radius: 100px;
}

.service-card h2,
.related-card h3 {
  font-family: var(--display);
  font-size: clamp(1.35rem, 2.2vw, 1.75rem);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.service-card p,
.related-card p {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 300;
  line-height: 1.7;
  margin-bottom: 22px;
}

.service-card-tiers {
  list-style: none;
  display: grid;
  gap: 8px;
  margin-bottom: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--rule);
}

.service-card-tiers li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 0.85rem;
  font-weight: 300;
}

.service-card-tiers li span:first-child { color: var(--muted); }
.service-card-tiers li span:last-child { font-weight: 500; }

.service-card-more,
.related-more {
  margin-top: auto;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--forest-mid);
}

/* ── Closing CTA ─────────────────────────────────────────────── */

.page-cta {
  min-height: 400px;
  display: grid;
  grid-template-columns: minmax(0, 760px) auto;
  align-items: center;
  justify-content: space-between;
  gap: clamp(50px, 10vw, 150px);
  color: var(--white);
  border-top: 0;
  background:
    radial-gradient(circle at 5% 100%, rgba(143, 180, 160, 0.2), transparent 25rem),
    #23493A;
}

.service-page .page-cta > * {
  width: auto;
  margin-left: 0;
  margin-right: 0;
}

.page-cta span {
  display: block;
  margin-bottom: 18px;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #A9C6B6;
}

.page-cta h2 {
  font-family: var(--display);
  font-size: clamp(2rem, 3.8vw, 3.2rem);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.1;
}

.page-cta .btn-solid {
  background: var(--white);
  color: var(--forest);
  white-space: nowrap;
}

.page-cta .btn-solid:hover { background: var(--forest-soft); }

/* ── What we fix ─────────────────────────────────────────────── */

.fix-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: clamp(40px, 5vw, 60px);
}

.fix-item {
  display: flex;
  flex-direction: column;
  padding: 30px 28px;
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.fix-item:hover {
  border-color: var(--forest-mid);
  box-shadow: var(--shadow);
}

.fix-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 14px;
  margin-bottom: 14px;
}

.fix-head .pillar-tag { margin-bottom: 0; }

.fix-symptom {
  font-size: 0.78rem;
  font-weight: 300;
  font-style: italic;
  color: var(--muted);
}

.fix-item h3 {
  font-family: var(--display);
  font-size: 1.45rem;
  font-weight: 500;
  line-height: 1.25;
  margin-bottom: 12px;
}

.fix-item > p {
  font-size: 0.92rem;
  font-weight: 300;
  line-height: 1.75;
  color: var(--muted);
}

.fix-answer {
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid var(--rule);
}

.fix-answer-label {
  display: block;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--forest-mid);
  margin-bottom: 8px;
}

.fix-answer p {
  font-size: 0.92rem;
  font-weight: 400;
  line-height: 1.6;
  color: var(--ink);
  margin-bottom: 12px;
}

.fix-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--forest-mid);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.fix-link:hover { border-bottom-color: var(--forest-mid); }

/* ── Outcomes ────────────────────────────────────────────────── */

.case-line {
  margin-top: 14px;
  font-size: 0.85rem;
  font-weight: 300;
  line-height: 1.7;
  color: var(--muted);
}

.case-line strong {
  display: block;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mineral);
  margin-bottom: 4px;
}

/* ── Responsive ──────────────────────────────────────────────── */

@media (max-width: 1100px) {
  .pricing-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 960px) {
  .pricing-grid-3 { grid-template-columns: 1fr; }
  .service-grid,
  .fix-grid { grid-template-columns: 1fr; }
  .service-hero h1 { max-width: none; }

  .page-cta {
    grid-template-columns: 1fr;
    justify-items: start;
    min-height: 0;
    gap: 36px;
  }
}

@media (max-width: 760px) {
  .pricing-grid-4,
  .related-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .faq-item summary { font-size: 1rem; gap: 16px; }
  .tier-card { padding: 26px 22px 24px; }
}
