/*
 Theme Name: Ceratech Child
 Description: Child theme for Ceratech. Upgrades: case study templates, FAQ display, detail-page refinements. All customizations live here so parent theme updates never wipe them.
 Template: ceratech
 Version: 1.0.0
 Author: WorkBuddy
*/

/* FAQ accordion (used by [ceratech_faq] shortcode) */
.faq-list { margin: var(--s-5) 0; border-top: 1px solid var(--c-line); }
.faq-item { border-bottom: 1px solid var(--c-line); }
.faq-item > summary {
  list-style: none; cursor: pointer; padding: var(--s-4) var(--s-2);
  font-weight: 600; font-size: 16px; color: var(--c-ink);
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq-item > summary::-webkit-details-marker { display: none; }
.faq-item > summary::after { content: "+"; font-size: 22px; color: var(--c-accent); flex: 0 0 auto; transition: transform .2s; }
.faq-item[open] > summary::after { transform: rotate(45deg); }
.faq-body { padding: 0 var(--s-2) var(--s-4); color: var(--c-muted); font-size: 15px; }

/* Case study detail tweaks */
.case-meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-4); margin: var(--s-5) 0; }
@media (max-width: 760px){ .case-meta { grid-template-columns: 1fr; } }
.case-gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s-4); margin: var(--s-6) 0; }
.case-gallery img { width: 100%; border-radius: var(--radius-lg); border: 1px solid var(--c-line); }

/* =====================================================================
   RapidDirect-style detail-page blocks (Step 1 restyle)
   Goal: match the reference detail page's signature sections — numbered
   "Why Choose" feature cards (01/02/03), spec tables, FAQ accordion,
   and a bottom CTA band — using the existing ceratech navy/cyan system.
   ===================================================================== */

/* Section heading block (eyebrow + title + lead) */
.sec-head { max-width: 780px; margin-bottom: var(--s-6); }
.sec-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.sec-head h2 { font-size: clamp(26px, 3.2vw, 38px); margin: var(--s-2) 0 var(--s-3); }
.sec-head p { color: var(--c-muted); font-size: 17px; margin: 0; }

/* Overview two-column (visual + text) */
.overview-2col { display: grid; grid-template-columns: 1.05fr .95fr; gap: var(--s-7); align-items: center; }
.overview-2col .ov-visual { background: var(--c-navy); border-radius: var(--radius-lg); aspect-ratio: 1/1; display: grid; place-items: center; padding: var(--s-7); }
.overview-2col .ov-visual svg { width: 100%; height: 100%; }
@media (max-width: 820px){ .overview-2col { grid-template-columns: 1fr; gap: var(--s-5); } }

/* "Why Choose …" numbered feature cards — THE signature block */
.feature-num { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-5); margin-top: var(--s-2); }
@media (max-width: 900px){ .feature-num { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 560px){ .feature-num { grid-template-columns: 1fr; } }
.feat { position: relative; padding: var(--s-6) var(--s-5) var(--s-5); background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius-lg); overflow: hidden; transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s; }
.feat:hover { transform: translateY(-4px); box-shadow: var(--sh-2); border-color: var(--c-accent); }
.feat .feat-num { position: absolute; top: 6px; right: 14px; font-family: var(--font-mono); font-size: 58px; font-weight: 700; line-height: 1; color: rgba(31,143,184,.14); pointer-events: none; }
.feat .feat-ico { width: 46px; height: 46px; border-radius: 12px; background: rgba(31,143,184,.12); display: grid; place-items: center; margin-bottom: var(--s-4); color: var(--c-accent); }
.feat .feat-ico svg { width: 24px; height: 24px; }
.feat h3 { font-size: 19px; margin: 0 0 var(--s-2); }
.feat p { font-size: 14.5px; color: var(--c-muted); margin: 0; }

/* Dark (navy) variant of the feature grid — used inside .bg-navy sections */
.bg-navy .feature-num { gap: var(--s-4); }
.bg-navy .feat { background: rgba(255,255,255,.04); border-color: var(--c-line-dark); }
.bg-navy .feat:hover { border-color: var(--c-accent-2); }
.bg-navy .feat .feat-num { color: rgba(31,143,184,.32); }
.bg-navy .feat .feat-ico { background: rgba(31,143,184,.20); color: var(--c-accent-2); }
.bg-navy .feat p { color: var(--c-on-navy-mut); }

/* Detail hero CTA row */
.detail-cta-row { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-top: var(--s-5); }

/* "Two meta boxes side by side" helper for considerations/limitations */
.meta-2col { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-4); margin-top: var(--s-5); }
@media (max-width: 760px){ .meta-2col { grid-template-columns: 1fr; } }

/* Polished FAQ accordion (used by [ceratech_faq]) */
.faq-list { border: 1px solid var(--c-line); border-radius: var(--radius-lg); overflow: hidden; background: #fff; margin: var(--s-4) 0; }
.faq-item { border-bottom: 1px solid var(--c-line); }
.faq-item:last-child { border-bottom: 0; }
.faq-item > summary { list-style: none; cursor: pointer; padding: var(--s-4) var(--s-5); font-weight: 600; font-size: 16px; color: var(--c-ink); display: flex; justify-content: space-between; align-items: center; gap: 16px; transition: background .18s var(--ease); }
.faq-item > summary::-webkit-details-marker { display: none; }
.faq-item > summary:hover { background: var(--c-bg-alt); }
.faq-item > summary::after { content: "+"; font-size: 22px; font-weight: 400; color: var(--c-accent); flex: 0 0 auto; transition: transform .2s var(--ease); }
.faq-item[open] > summary::after { transform: rotate(45deg); }
.faq-item[open] > summary { color: var(--c-accent); }
.faq-body { padding: 0 var(--s-5) var(--s-4); color: var(--c-muted); font-size: 15px; }

/* Two-column related links at the end of a detail page */
.related-2col { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-6); margin-top: var(--s-5); }
@media (max-width: 760px){ .related-2col { grid-template-columns: 1fr; gap: var(--s-4); } }
.related-2col .rel-col h3 { font-size: 20px; margin: 0 0 var(--s-3); }
