/* ============================================================
   Portals service detail page styles.
   Source: /docs/mockups/portals.html.

   Third of seven service detail pages. Patterns shared with
   Creator and Implementation now live in components/:
     - components/svc-hero.css      (hero + what-card)
     - components/cred-strip.css    (credibility strip)
     - components/use-cases.css     (use case grid)
     - components/capabilities.css  (10-row dark capability grid)
     - components/svc-process.css   (4-up process strip)
     - components/case-study.css    (3-stat case study)

   The single-card related callout that pointed at Creator was
   lifted to components/related-callout.css when Strategy (the
   third page to use the shape) landed.

   What stays here:
   - .arch-section + .arch-grid     Page-specific architecture
                                    section: 2-col content + diagram
                                    container. Light-gray topo
                                    callback behind. Diagram markup
                                    is structured so the inline SVG
                                    can be swapped for a single <img>
                                    later without touching the
                                    container.
   - .faq-section / .faq-item       Borderless rows + circle-chevron
                                    toggle (matches Creator). Will
                                    reconcile when Implementation
                                    next gets touched.
   ============================================================ */

/* === ARCHITECTURE (page-specific) ===
   2-col split on tinted-light: content on the left, diagram
   container on the right. The mid-page light-gray topo callback
   sits behind it (per /docs/02-design-system.md). */

.arch-section {
  background: var(--bg-light-2);
  position: relative;
  overflow: hidden;
}
.arch-topo {
  position: absolute;
  inset: 0;
  background-image: var(--topo-light-gray);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.18;
  z-index: 0;
  pointer-events: none;
}
.arch-section .container { position: relative; z-index: 2; }

.arch-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 64px;
  align-items: center;
}

.arch-eyebrow {
  display: block;
  margin-bottom: 18px;
  color: var(--orange);
}
.arch-content h2 {
  font-size: 36px;
  color: var(--text-dark);
  line-height: 1.1;
  margin-bottom: 18px;
}
.arch-intro {
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-dark-2);
  margin-bottom: 22px;
}

.arch-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 22px;
}
.arch-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.arch-item-bullet {
  width: 22px;
  height: 22px;
  border-radius: var(--radius-sm);
  background: rgba(220, 115, 76, 0.14);
  color: var(--orange);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}
.arch-item-bullet svg { width: 12px; height: 12px; }
.arch-item p {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--text-dark-2);
}
.arch-item strong {
  color: var(--text-dark);
  font-weight: var(--weight-medium);
}

/* Diagram container — sized so the inline SVG (working concept)
   can be replaced by a single <img> later without touching the
   surrounding layout. */
.arch-diagram {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: var(--radius-card-lg);
  padding: 32px 28px 24px;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.arch-diagram svg,
.arch-diagram img {
  width: 100%;
  height: auto;
  display: block;
}
.arch-diagram-caption {
  text-align: center;
  font-size: 13px;
  color: var(--text-dark-3);
  margin-top: 14px;
  line-height: 1.55;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

/* Inline-SVG diagram styles. Only used while the diagram is
   inline; becomes dead code when the SVG is replaced by an
   <img>. Kept colocated with .arch-diagram for that reason. */
.dg-gray-fill { fill: #D3D1C7; }
.dg-gray-stroke { stroke: #5F5E5A; }
.dg-coral-fill { fill: #F5C4B3; }
.dg-coral-stroke { stroke: #993C1D; }
.dg-blue-fill { fill: #B5D4F4; }
.dg-blue-stroke { stroke: #185FA5; }
.dg-teal-fill { fill: #9FE1CB; }
.dg-teal-stroke { stroke: #0F6E56; }
.dg-amber-fill { fill: #FAC775; }
.dg-amber-stroke { stroke: #854F0B; }
.dg-arrow {
  stroke: rgba(26, 24, 21, 0.55);
  stroke-width: 1.2;
  fill: none;
}
.dg-text-title {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: var(--weight-medium);
  fill: var(--text-dark);
}
.dg-text-title--lg { font-size: 14px; }
.dg-text-sub {
  font-family: var(--font-body);
  font-size: 11px;
  fill: var(--text-dark-2);
}
.dg-text-axis {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  fill: var(--text-dark-3);
}

/* === FAQ (page-specific; matches Creator) ===
   Borderless rows with a circle-chevron toggle. Different from
   Implementation's bordered-card + (+/−) toggle. Reconcile when
   Implementation next gets touched. */

.faq-section { padding-top: var(--section-pad-y); padding-bottom: var(--section-pad-y); }

.faq-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 64px;
  align-items: start;
}

.faq-eyebrow {
  display: block;
  margin-bottom: 18px;
  color: var(--orange);
}
.faq-intro h2 {
  font-size: 36px;
  color: var(--text-dark);
  line-height: 1.1;
  margin-bottom: 18px;
}
.faq-intro p {
  font-size: 16px;
  color: var(--text-dark-2);
  line-height: 1.6;
}

.faq-list {
  display: flex;
  flex-direction: column;
}
.faq-item {
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  padding: 22px 0;
}
.faq-item:last-child { border-bottom: 1px solid rgba(0, 0, 0, 0.1); }

.faq-item summary { list-style: none; cursor: pointer; }
.faq-item summary::-webkit-details-marker { display: none; }

.faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: var(--weight-medium);
  color: var(--text-dark);
  line-height: 1.35;
  transition: color 0.2s ease;
}
.faq-item:hover .faq-q { color: var(--orange); }

.faq-toggle {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dark-2);
  transition: transform 0.3s var(--ease-out), background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.faq-toggle svg { width: 12px; height: 12px; }
.faq-item:hover .faq-toggle {
  background: var(--orange);
  border-color: var(--orange);
  color: #0c0c0c;
}
.faq-item[open] .faq-toggle {
  transform: rotate(180deg);
}

.faq-a {
  margin-top: 14px;
  font-size: 14.5px;
  color: var(--text-dark-2);
  line-height: 1.65;
}
.faq-a p + p { margin-top: 12px; }

/* === RESPONSIVE === */

@media (max-width: 980px) {
  .arch-grid { grid-template-columns: 1fr; gap: 36px; }
  .faq-grid { grid-template-columns: 1fr; gap: 36px; }
}

@media (max-width: 640px) {
  .arch-content h2 { font-size: 28px; }
  .arch-diagram { padding: 24px 20px 18px; }
  .faq-intro h2 { font-size: 28px; }
}
