/* ============================================================
   DIGIFOX STUDIO — Service detail pages
   Shared components for the five service pages.
   ============================================================ */

.section--tight { padding-top: 3rem; }

/* ============================================================
   SERVICES HUB — service blocks
   The hub on services.html uses .service-block; the detail pages
   use .service-panel. Both share the same card treatment so the
   hub does not read as an unstyled list next to its own sub-pages.
   ============================================================ */
.service-blocks {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.4rem;
}

.service-block {
  position: relative;
  overflow: hidden;
  min-height: 300px;
  padding: 2.2rem 2rem;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 20% 10%, rgba(245, 103, 60, 0.16), transparent 55%),
    radial-gradient(circle at 90% 90%, rgba(235, 151, 24, 0.1), transparent 55%),
    var(--surface);
  transition: transform 0.3s cubic-bezier(0.34, 1.4, 0.64, 1), border-color 0.3s, box-shadow 0.3s;
}

.service-block:hover {
  transform: translateY(-4px);
  border-color: var(--border-hover);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
}

.service-block > div {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.service-block h2 {
  font-size: clamp(1.25rem, 2vw, 1.6rem);
  margin-bottom: 0.6rem;
}

.service-block p {
  color: var(--text-dim);
  font-size: 0.97rem;
  max-width: 46ch;
}

.service-block .card-link {
  margin-top: auto;
  padding-top: 1.2rem;
  align-self: flex-start;
}

.service-block__links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
  margin-top: auto;
  padding-top: 1.2rem;
}

@media (max-width: 900px) {
  .service-blocks { grid-template-columns: 1fr; }
  .service-block { min-height: 0; padding: 2rem 1.6rem; }
}

/* Hero */
.service-hero .lead { margin-inline: auto; }
.service-hero .hero-actions { justify-content: center; margin-top: 2rem; }

/* Quick answer / GEO summary */
.quick-answer {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.1rem 1.4rem;
  align-items: start;
  max-width: 920px;
  margin: 0 auto;
  padding: 1.7rem 1.9rem;
  background:
    linear-gradient(135deg, rgba(245, 103, 60, 0.11), rgba(235, 151, 24, 0.04)),
    var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
}

.quick-answer__icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: rgba(245, 103, 60, 0.14);
  border: 1px solid var(--border);
}

.quick-answer__icon svg { width: 20px; height: 20px; stroke: var(--accent); }

.quick-answer__label {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.35rem;
}

.quick-answer p:last-child { color: var(--text); margin: 0; font-size: 1.02rem; }

/* Two-column capability list */
.check-list--grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 2.2rem;
  margin-bottom: 0;
}

/* Side panel in the overview split */
.service-panel {
  position: relative;
  overflow: hidden;
  min-height: 330px;
  padding: 2.4rem 2.2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 2rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 20% 10%, rgba(245, 103, 60, 0.16), transparent 55%),
    radial-gradient(circle at 90% 90%, rgba(235, 151, 24, 0.1), transparent 55%),
    var(--surface);
}

.service-panel__label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 0.4rem;
}

.service-panel h3 { font-size: clamp(1.3rem, 2vw, 1.7rem); margin-bottom: 0.5rem; margin-top: 1.2rem; }
.service-panel p { color: var(--text-dim); font-size: 0.95rem; max-width: 34ch; }

.service-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; }

.service-tags li {
  padding: 0.35rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.78rem;
  color: var(--text-dim);
  background: rgba(255, 255, 255, 0.02);
}

/* Showreel figure */
.service-reel { margin: 0; }

.service-reel video {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: #000;
}

.service-reel figcaption { color: var(--text-faint); font-size: 0.82rem; margin-top: 0.7rem; }

/* FAQ */
.faq-list { max-width: 840px; margin: 0 auto; display: grid; gap: 0.8rem; }

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 0.25s;
}

.faq-item:hover { border-color: var(--border-hover); }

.faq-item summary {
  position: relative;
  cursor: pointer;
  list-style: none;
  padding: 1.1rem 3.2rem 1.1rem 1.3rem;
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--text);
}

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

.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 1.2rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--accent);
  font-size: 1.35rem;
  line-height: 1;
  transition: transform 0.2s;
}

.faq-item[open] summary::after { transform: translateY(-50%) rotate(45deg); }

.faq-item summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
  border-radius: 12px;
}

.faq-item p {
  padding: 0 1.3rem 1.2rem;
  color: var(--text-dim);
  margin: 0;
  max-width: 72ch;
  font-size: 0.95rem;
}

/* Related services */
.related-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }

.related-card {
  display: flex;
  flex-direction: column;
  padding: 1.5rem 1.4rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  transition: border-color 0.25s, transform 0.25s, background 0.25s;
}

.related-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  background: var(--surface-hover);
}

.related-card__tag {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.55rem;
}

.related-card h3 { font-size: 1rem; margin-bottom: 0.4rem; }
.related-card p { color: var(--text-dim); font-size: 0.86rem; margin-bottom: 1rem; flex: 1; }
.related-card .card-link { font-size: 0.82rem; }

@media (max-width: 980px) {
  .related-grid { grid-template-columns: repeat(2, 1fr); }
  .check-list--grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .section--tight { padding-top: 2rem; }
  .quick-answer { grid-template-columns: 1fr; padding: 1.4rem 1.3rem; }
  .service-panel { min-height: 0; padding: 2rem 1.6rem; }
  .related-grid { grid-template-columns: 1fr; }
}
