/* ---------------------------------------------------------------------------
 * Long-form content, specification tables, FAQ blocks, breadcrumbs and the
 * new About / Work / Contact / Services pages.
 * Uses the same custom properties as styles.min.css so both themes are covered.
 * ------------------------------------------------------------------------ */

.prose-container {
  width: min(calc(100% - 48px), 860px);
  margin-inline: auto;
}

/* ---------- breadcrumbs ---------- */
.breadcrumbs {
  padding-top: calc(var(--header) + 22px);
  padding-bottom: 4px;
  font-size: 13.5px;
}

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
}

.breadcrumbs li + li::before {
  content: "/";
  margin-inline-end: 8px;
  color: var(--muted);
  opacity: .55;
}

.breadcrumbs a {
  color: var(--text-soft);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.breadcrumbs a:hover {
  color: var(--text);
  border-bottom-color: var(--line-strong);
}

.breadcrumbs [aria-current="page"] {
  color: var(--muted);
}

/* the service pages already open with their own hero, so no extra top pad */
.service-detail-page .breadcrumbs {
  padding-bottom: 0;
}

/* ---------- generic page hero (about / work / contact / services) ---------- */
.page-hero {
  padding: clamp(34px, 6vw, 64px) 0 clamp(18px, 3vw, 30px);
}

.page-hero h1 {
  margin: 0 0 22px;
  font-size: clamp(30px, 5vw, 52px);
  line-height: 1.12;
  letter-spacing: -.02em;
}

.page-answer,
.hero-answer,
.service-answer {
  max-width: 68ch;
  margin: 0 0 20px;
  color: var(--text-soft);
  font-size: clamp(16.5px, 1.7vw, 19px);
  line-height: 1.75;
}

/* the answer paragraph is the block AI engines lift - give it a visible anchor */
.page-answer,
.service-answer {
  padding-inline-start: 16px;
  border-inline-start: 2px solid var(--blue);
}

html[dir="rtl"] .page-answer,
html[dir="rtl"] .service-answer {
  padding-inline-start: 16px;
}

/* ---------- homepage H1 lead line ---------- */
.hero-h1-lead {
  display: block;
  margin-bottom: 14px;
  color: var(--cyan);
  font-size: clamp(11px, 1.2vw, 13px);
  font-weight: 800;
  letter-spacing: .18em;
  line-height: 1.5;
  text-transform: uppercase;
}

.hero-h1-main {
  display: block;
}

.hero-answer {
  margin-top: 4px;
}

/* ---------- long-form prose ---------- */
.prose-block {
  margin-bottom: clamp(34px, 5vw, 54px);
}

.prose-block h2,
.service-specs h2,
.service-faq h2,
.service-related h2 {
  margin: 0 0 18px;
  font-size: clamp(22px, 3vw, 30px);
  line-height: 1.25;
  letter-spacing: -.01em;
}

.prose-block p {
  max-width: 72ch;
  margin: 0 0 16px;
  color: var(--text-soft);
  font-size: 16.5px;
  line-height: 1.85;
}

.prose-list {
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.prose-list li {
  position: relative;
  padding-inline-start: 26px;
  color: var(--text-soft);
  font-size: 16px;
  line-height: 1.75;
}

.prose-list li::before {
  content: "";
  position: absolute;
  inset-inline-start: 6px;
  top: .72em;
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--blue);
}

/* ---------- specification table ---------- */
.spec-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
}

.spec-table {
  width: 100%;
  min-width: 420px;
  border-collapse: collapse;
  font-size: 15.5px;
}

.spec-table th,
.spec-table td {
  padding: 14px 20px;
  text-align: start;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}

.spec-table tr:last-child th,
.spec-table tr:last-child td {
  border-bottom: 0;
}

.spec-table th {
  width: 42%;
  color: var(--muted);
  font-weight: 600;
  font-size: 14px;
}

.spec-table td {
  color: var(--text-soft);
}

.spec-table .spec-price td {
  color: var(--text);
  font-weight: 700;
}

.todo-note {
  display: inline-block;
  padding: 2px 8px;
  border: 1px dashed var(--line-strong);
  border-radius: 6px;
  color: var(--muted);
  font-size: 13px;
}

/* ---------- FAQ ---------- */
.faq-list {
  display: grid;
  gap: 12px;
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  overflow: hidden;
}

.faq-item summary {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 22px;
  cursor: pointer;
  list-style: none;
}

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

.faq-item summary::after {
  content: "";
  flex: none;
  margin-inline-start: auto;
  width: 10px;
  height: 10px;
  border-inline-end: 2px solid var(--muted);
  border-block-end: 2px solid var(--muted);
  transform: rotate(45deg);
  transition: transform .18s var(--ease);
}

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

.faq-item summary h3 {
  margin: 0;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.5;
}

.faq-item summary:hover {
  background: var(--surface-2);
}

.faq-answer {
  padding: 0 22px 20px;
}

.faq-answer p {
  margin: 0;
  max-width: 70ch;
  color: var(--text-soft);
  font-size: 16px;
  line-height: 1.8;
}

/* ---------- deliverables and process, now with sub-headings ---------- */
.service-deliverables li h3,
.service-process-steps article h3 {
  margin: 0 0 6px;
  font-size: 17px;
  font-weight: 650;
  line-height: 1.45;
}

.service-deliverables li p,
.service-process-steps article p {
  margin: 0;
  color: var(--text-soft);
  font-size: 15.5px;
  line-height: 1.75;
}

/* ---------- related services ---------- */
.related-lead {
  max-width: 66ch;
  margin: 0 0 24px;
  color: var(--text-soft);
  line-height: 1.8;
}

.related-grid,
.services-index-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.related-card,
.service-index-card {
  display: block;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  text-decoration: none;
  color: inherit;
  transition: border-color .18s var(--ease), transform .18s var(--ease);
}

.related-card:hover,
.service-index-card:hover {
  border-color: var(--line-strong);
  transform: translateY(-2px);
}

.related-index {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--cyan);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .16em;
}

.related-card h3,
.service-index-card h3 {
  margin: 0 0 10px;
  font-size: 18px;
  line-height: 1.4;
}

.service-index-card h3 a {
  color: inherit;
  text-decoration: none;
}

.service-index-card h3 a:hover {
  color: var(--blue-bright);
}

.related-card p,
.service-index-card p {
  margin: 0 0 14px;
  color: var(--text-soft);
  font-size: 15px;
  line-height: 1.7;
}

.service-index-points {
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 6px;
}

.service-index-points li {
  position: relative;
  padding-inline-start: 18px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.service-index-points li::before {
  content: "";
  position: absolute;
  inset-inline-start: 2px;
  top: .68em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue);
}

.related-more {
  display: inline-block;
  color: var(--blue-bright);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.related-more:hover {
  text-decoration: underline;
}

.related-all {
  margin-top: 28px;
  color: var(--muted);
  font-size: 15px;
  line-height: 2;
}

.related-all a {
  color: var(--text-soft);
}

.service-updated {
  margin-top: 18px;
  color: var(--muted);
  font-size: 13.5px;
}

.service-next-line {
  max-width: 60ch;
  margin: 12px auto 22px;
  color: var(--text-soft);
  line-height: 1.8;
}

/* ---------- case studies on /work/ ---------- */
.case-study {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 22px;
  margin-bottom: clamp(38px, 6vw, 64px);
  padding-bottom: clamp(30px, 5vw, 48px);
  border-bottom: 1px solid var(--line);
}

.case-study:last-of-type {
  border-bottom: 0;
}

.case-study-media {
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
}

.case-study-media img {
  display: block;
  width: 100%;
  height: auto;
}

.case-study-body h2 {
  margin: 6px 0 18px;
  font-size: clamp(22px, 3vw, 30px);
  line-height: 1.25;
}

.case-study-dl {
  display: grid;
  grid-template-columns: minmax(120px, 160px) minmax(0, 1fr);
  gap: 10px 20px;
  margin: 0 0 18px;
}

.case-study-dl dt {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding-top: 3px;
}

.case-study-dl dd {
  margin: 0;
  color: var(--text-soft);
  font-size: 16px;
  line-height: 1.8;
}

.case-study-services {
  color: var(--muted);
  font-size: 14.5px;
}

.case-study-services a {
  color: var(--text-soft);
}

@media (max-width: 620px) {
  .case-study-dl {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
  }

  .case-study-dl dd {
    margin-bottom: 12px;
  }
}

/* ---------- team cards on /about/ ---------- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.team-card {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
}

.team-card h3 {
  margin: 0 0 8px;
  font-size: 18px;
}

.team-card p {
  margin: 0 0 6px;
  color: var(--text-soft);
  font-size: 15px;
}

/* ---------- contact page ---------- */
.contact-page .contact-grid {
  align-items: start;
}

.contact-page .contact-copy h2,
.form-heading {
  margin: 0 0 20px;
  font-size: clamp(20px, 2.6vw, 26px);
}

.contact-page .contact-copy h2:not(:first-child) {
  margin-top: 42px;
}

.contact-page .map-embed iframe {
  border-radius: var(--radius-sm);
}

/* ---------- shared page shell ---------- */
.page-main .section {
  padding-block: clamp(30px, 5vw, 56px);
}

.page-main .section:first-of-type {
  padding-top: clamp(18px, 3vw, 32px);
}

@media (max-width: 780px) {
  .prose-container {
    width: calc(100% - 40px);
  }

  .spec-table th {
    width: 46%;
  }
}

/* ---------------------------------------------------------------------------
 * The WhatsApp and accessibility panels used to title themselves with <h2>.
 * Six service pages sharing the same two H2s reads to a search engine as one
 * repeated template, so they are now paragraphs carrying the same styling.
 * ------------------------------------------------------------------------ */
.whatsapp-panel .panel-title {
  margin: 0 0 7px;
  font-size: 23px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -.035em;
  color: var(--text);
}

.accessibility-head .panel-title-lg {
  max-width: 270px;
  margin: 0;
  font-size: clamp(27px, 5vw, 38px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -.045em;
  color: var(--text);
}

/* Section headings on the new pages should not inherit the display size the
   marketing sections use - these are document headings, not hero statements. */
.page-main .container h2,
.contact-page .contact-copy h2,
.contact-page .form-heading {
  font-size: clamp(21px, 2.7vw, 30px);
  line-height: 1.25;
  letter-spacing: -.01em;
  text-align: start;
}

.page-main .prose-container > h2 {
  margin-bottom: 20px;
}

.team-card .team-role {
  margin: 0 0 8px;
  color: var(--cyan);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
