/* ============================================================
   Inner page shared styles
   ============================================================ */

/* ---- Page hero (sub-page header) ---- */
.page-hero { background: var(--ink); color: #CBD5E1; padding-top: clamp(56px, 7vw, 92px); padding-bottom: clamp(56px, 7vw, 92px); position: relative; overflow: hidden; }
.page-hero .wrap { position: relative; z-index: 1; }
.page-hero .eyebrow { color: var(--cyan); }
.page-hero h1 { color: #fff; font-size: clamp(2.2rem, 5vw, 3.6rem); margin-top: 20px; letter-spacing: -.035em; max-width: 16ch; }
.page-hero .lead { color: #94A3B8; margin-top: 20px; max-width: 620px; }
.page-hero .crumb { font-family: var(--font-mono); font-size: 12.5px; color: var(--muted-2); letter-spacing: .04em; }
.page-hero .crumb a:hover { color: var(--cyan); }
.page-hero-actions { display: flex; gap: 14px; margin-top: 32px; flex-wrap: wrap; }

/* ---- Generic feature list ---- */
.feature-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; }
.feature { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.feature .icon-chip.soft { width: 48px; height: 48px; }
.feature h3 { font-size: 1.12rem; }
.feature p { font-size: 15px; color: var(--muted); }
@media (max-width: 880px){ .feature-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 560px){ .feature-grid { grid-template-columns: 1fr; } }

/* ---- Two column split ---- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 76px); align-items: center; }
.split.narrow { grid-template-columns: 1.1fr .9fr; }
.split .h2 { margin-top: 18px; } .split .lead { margin-top: 18px; }
@media (max-width: 880px){ .split { grid-template-columns: 1fr; } .split .ph { min-height: 280px; } }

/* ---- Stat row ---- */
.stat-row { display: grid; grid-template-columns: repeat(4,1fr); gap: 22px; }
.stat-row .stat { text-align: center; padding: 26px 16px; border-right: 1px solid var(--line); }
.stat-row .stat:last-child { border-right: 0; }
.stat-row .stat strong { font-family: var(--font-display); font-size: clamp(2rem,4vw,2.8rem); color: var(--ink); display: block; line-height: 1; letter-spacing: -.03em; }
.stat-row .stat span { font-size: 14px; color: var(--muted); margin-top: 10px; display: block; }
.dark .stat-row .stat { border-color: rgba(255,255,255,.12); }
.dark .stat-row .stat strong { color: #fff; }
.dark .stat-row .stat span { color: #94A3B8; }
@media (max-width: 700px){ .stat-row { grid-template-columns: 1fr 1fr; } .stat-row .stat:nth-child(2){ border-right: 0; } }

/* ---- Pretty list ---- */
.check-list { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 14px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; font-size: 15.5px; color: var(--ink-2); }
.check-list .tick { width: 26px; height: 26px; border-radius: 8px; background: rgba(37,99,235,.1); color: var(--blue); display: grid; place-items: center; flex: none; margin-top: 1px; }
.check-list .tick svg { width: 16px; height: 16px; }

/* ---- FAQ accordion ---- */
.faq { max-width: 800px; margin-inline: auto; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q { width: 100%; background: none; border: 0; text-align: left; padding: 24px 0; font-family: var(--font-display); font-weight: 600; font-size: 1.12rem; color: var(--ink); cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.faq-q .pm { width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; flex: none; transition: all .25s; position: relative; }
.faq-q .pm::before, .faq-q .pm::after { content:""; position:absolute; background: var(--blue); border-radius: 2px; }
.faq-q .pm::before { width: 13px; height: 2px; }
.faq-q .pm::after { width: 2px; height: 13px; transition: transform .25s; }
.faq-item.open .faq-q .pm { background: var(--blue); border-color: var(--blue); }
.faq-item.open .faq-q .pm::before, .faq-item.open .faq-q .pm::after { background: #fff; }
.faq-item.open .faq-q .pm::after { transform: rotate(90deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .32s ease; }
.faq-a p { padding-bottom: 24px; color: var(--muted); font-size: 15.5px; max-width: 68ch; }

/* ---- Newsletter ---- */
.newsletter { display: flex; gap: 12px; max-width: 460px; flex-wrap: wrap; }
.newsletter input { flex: 1; min-width: 200px; padding: 14px 18px; border-radius: var(--r-pill); border: 1px solid var(--line); font-family: var(--font-body); font-size: 15px; background: #fff; }
.newsletter input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(37,99,235,.12); }
.dark .newsletter input { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.16); color: #fff; }

/* ---- Timeline ---- */
.timeline { display: grid; gap: 0; max-width: 760px; }
.tl-item { display: grid; grid-template-columns: 110px 1fr; gap: 28px; padding-bottom: 36px; position: relative; }
.tl-item::before { content:""; position: absolute; left: 124px; top: 8px; bottom: -8px; width: 2px; background: var(--line); }
.tl-item:last-child::before { display: none; }
.tl-year { font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; color: var(--blue); }
.tl-body { position: relative; padding-left: 30px; }
.tl-body::before { content:""; position: absolute; left: -8px; top: 6px; width: 14px; height: 14px; border-radius: 50%; background: var(--grad); box-shadow: 0 0 0 4px #fff; }
.tl-body h3 { font-size: 1.12rem; margin-bottom: 6px; }
.tl-body p { color: var(--muted); font-size: 15px; }
@media (max-width: 560px){ .tl-item { grid-template-columns: 1fr; gap: 6px; } .tl-item::before { display: none; } .tl-body { padding-left: 0; } .tl-body::before { display: none; } }

/* ---- Values / team cards ---- */
.value-card { padding: 30px; }
.value-card .icon-chip { margin-bottom: 18px; }
.value-card h3 { font-size: 1.15rem; margin-bottom: 10px; }
.value-card p { color: var(--muted); font-size: 15px; }
.team-card { text-align: center; }
.team-card .ph { min-height: 240px; border-radius: var(--r-md); margin-bottom: 18px; }
.team-card h3 { font-size: 1.1rem; }
.team-card .role { color: var(--blue); font-size: 14px; font-weight: 600; margin-top: 3px; }
.team-card p { color: var(--muted); font-size: 14px; margin-top: 10px; }

/* ---- Industry cards ---- */
.industry-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; }
.industry-card { padding: 30px; display: flex; flex-direction: column; gap: 14px; align-items: flex-start; position: relative; overflow: hidden; }
.industry-card .icon-chip { background: var(--grad-soft); color: var(--blue); box-shadow: none; }
.industry-card h3 { font-size: 1.18rem; }
.industry-card p { color: var(--muted); font-size: 15px; flex: 1; }
.industry-card ul { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 8px; }
.industry-card li { font-size: 14px; color: var(--ink-2); padding-left: 18px; position: relative; }
.industry-card li::before { content:""; position: absolute; left: 0; top: 9px; width: 6px; height: 6px; border-radius: 50%; background: var(--cyan); }
@media (max-width: 880px){ .industry-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 560px){ .industry-grid { grid-template-columns: 1fr; } }

/* ---- Blog cards ---- */
.blog-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 26px; }
.blog-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; transition: transform .28s, box-shadow .28s; }
.blog-card:hover { transform: translateY(-5px); box-shadow: var(--sh-lg); }
.blog-card .ph { min-height: 190px; border: none; border-radius: 0; }
.blog-body { padding: 24px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.blog-meta { display: flex; gap: 12px; align-items: center; font-size: 13px; color: var(--muted); font-family: var(--font-mono); }
.blog-body h3 { font-size: 1.16rem; line-height: 1.25; }
.blog-body p { font-size: 14.5px; color: var(--muted); flex: 1; }
.blog-feature { grid-column: span 3; display: grid; grid-template-columns: 1.1fr 1fr; gap: 0; }
.blog-feature .ph { min-height: 320px; }
.blog-feature .blog-body { padding: clamp(28px,4vw,48px); justify-content: center; }
.blog-feature h3 { font-size: clamp(1.4rem, 2.6vw, 2rem); }
@media (max-width: 880px){ .blog-grid { grid-template-columns: repeat(2,1fr); } .blog-feature { grid-column: span 2; grid-template-columns: 1fr; } }
@media (max-width: 560px){ .blog-grid { grid-template-columns: 1fr; } .blog-feature { grid-column: span 1; } }

/* ---- Portfolio filtering ---- */
.filter-bar { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-bottom: 44px; }
.filter-btn { font-family: var(--font-body); font-weight: 600; font-size: 14.5px; padding: 10px 20px; border-radius: var(--r-pill); border: 1px solid var(--line); background: #fff; color: var(--ink-2); cursor: pointer; transition: all .2s; }
.filter-btn:hover { border-color: var(--blue); color: var(--blue); }
.filter-btn.active { background: var(--ink); color: #fff; border-color: var(--ink); }
.portfolio-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 26px; }
.pf-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; transition: transform .35s cubic-bezier(.2,.7,.3,1), box-shadow .35s, opacity .3s; }
.pf-card:hover { transform: translateY(-5px); box-shadow: var(--sh-lg); }
.pf-card.hide { display: none; }
.pf-card .ph { min-height: 210px; border: none; border-radius: 0; }
.pf-body { padding: 24px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.pf-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.pf-body h3 { font-size: 1.18rem; }
.pf-body p { font-size: 14.5px; color: var(--muted); flex: 1; }
.pf-result { display: flex; gap: 16px; flex-wrap: wrap; padding-top: 14px; border-top: 1px solid var(--line-soft); margin-top: 4px; }
.pf-result span { font-size: 13px; color: var(--muted); }
.pf-result strong { display: block; font-family: var(--font-display); font-size: 1.3rem; color: var(--blue); }
@media (max-width: 880px){ .portfolio-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 560px){ .portfolio-grid { grid-template-columns: 1fr; } }

/* ---- Contact ---- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(36px, 5vw, 64px); align-items: start; }
.contact-info { display: grid; gap: 14px; }
.contact-method { display: flex; gap: 16px; align-items: flex-start; padding: 20px; border: 1px solid var(--line); border-radius: var(--r-md); background: #fff; transition: border-color .2s, box-shadow .2s; }
.contact-method:hover { border-color: var(--blue); box-shadow: var(--sh-sm); }
.contact-method .icon-chip.soft { width: 46px; height: 46px; }
.contact-method strong { display: block; font-family: var(--font-display); font-size: 1rem; color: var(--ink); margin-bottom: 3px; }
.contact-method span { font-size: 14.5px; color: var(--muted); }
.contact-form { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(26px, 4vw, 40px); box-shadow: var(--sh-md); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 13.5px; font-weight: 600; color: var(--ink-2); margin-bottom: 7px; }
.field input, .field select, .field textarea { width: 100%; padding: 13px 15px; border-radius: var(--r-sm); border: 1px solid var(--line); font-family: var(--font-body); font-size: 15px; background: var(--surface); transition: border-color .2s, box-shadow .2s; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); background: #fff; box-shadow: 0 0 0 4px rgba(37,99,235,.1); }
.field textarea { resize: vertical; min-height: 120px; }
.form-note { font-size: 13px; color: var(--muted); margin-top: 4px; }
.form-success { display: none; text-align: center; padding: 30px; }
.form-success.show { display: block; }
.form-success .ok-circle { width: 64px; height: 64px; border-radius: 50%; background: rgba(52,211,153,.14); color: #10B981; display: grid; place-items: center; margin: 0 auto 18px; }
.form-success .ok-circle svg { width: 32px; height: 32px; }
.map-ph { min-height: 320px; border-radius: var(--r-lg); }
@media (max-width: 880px){ .contact-grid { grid-template-columns: 1fr; } .form-row { grid-template-columns: 1fr; } }

/* CTA reuse on inner pages */
.inner-cta { text-align: center; max-width: 640px; margin-inline: auto; }
.inner-cta .h2 { margin: 16px 0; }
