/* =========================================================
   Case studies, About and Contact pages. Shared tokens and components are in site.css.
   ========================================================= */

/* ---- Case study cards (index and "more case studies") ---- */
.study-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.study-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); overflow: hidden; transition: transform .3s var(--ease), box-shadow .3s; }
.study-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.study-media { display: block; aspect-ratio: 16 / 9; background: #eef2f5; overflow: hidden; }
.study-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s var(--ease); }
.study-card:hover .study-media img { transform: scale(1.04); }
.study-body { display: flex; flex-direction: column; gap: 12px; padding: 26px; flex: 1; }
.study-tag { align-self: flex-start; font-size: .72rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-ink); background: var(--accent-tint); padding: 3px 12px; border-radius: var(--radius-pill); }
.study-title { font-size: 1.3rem; line-height: 1.3; font-weight: 700; }
.study-title a { color: var(--navy-dark); text-decoration: none; }
.study-title a:hover { color: var(--accent-ink); }
.study-text { color: var(--muted); font-size: .95rem; }
.study-card .case-link { margin-top: auto; }
.study-note { margin-top: 28px; text-align: center; color: var(--muted); font-size: .95rem; }
.study-note a { color: var(--accent-ink); font-weight: 600; }

/* ---- Case study detail ---- */
.study-layout { max-width: 860px; margin: 0 auto; }
.study-figure { margin: 0 0 36px; }
.study-figure img { width: 100%; height: auto; display: block; border-radius: var(--radius-lg); box-shadow: var(--shadow); border: 1px solid var(--line); background: #fff; }
.study-metrics { margin-bottom: 40px; }
.study-metrics .case-metrics { gap: 16px; }
.study-metrics .case-metric { padding: 22px 12px; }
.study-metrics .case-metric strong { font-size: 2.2rem; }
.study-metrics .case-metric span { font-size: .88rem; }
.study-section { margin-bottom: 36px; }
.study-section h2 { font-size: 1.5rem; line-height: 1.3; color: var(--navy-dark); margin-bottom: 14px; }
.study-section h3 { font-size: 1rem; text-transform: uppercase; letter-spacing: .08em; color: var(--accent-ink); margin: 20px 0 10px; }
.study-section p { color: #2d3740; font-size: 1.04rem; line-height: 1.8; margin-bottom: 14px; }
.study-section ul { list-style: none; display: grid; gap: 10px; padding: 0; }
.study-section li { position: relative; padding-left: 28px; color: #2d3740; }
.study-section li::before { content: "\f00c"; font-family: "Font Awesome 6 Free"; font-weight: 900; position: absolute; left: 0; top: .1em; font-size: .8rem; color: var(--accent-ink); }
.more-studies { margin-top: 56px; }
.more-studies h2 { font-size: 1.5rem; color: var(--navy-dark); margin-bottom: 20px; }

/* ---- About ---- */
.about-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: center; }
.about-grid h2, .about-block h2 { font-size: clamp(1.6rem, 3.2vw, 2.2rem); line-height: 1.25; color: var(--navy-dark); margin-bottom: 16px; }
.about-grid p, .about-block p { color: #2d3740; font-size: 1.05rem; line-height: 1.8; margin-bottom: 14px; }
.about-photo { position: relative; justify-self: center; width: min(100%, 340px); }
.about-photo img { width: 100%; height: auto; display: block; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); background: var(--accent-tint); }
.about-photo figcaption { margin-top: 12px; text-align: center; font-size: .9rem; color: var(--muted); }
.about-photo figcaption strong { display: block; color: var(--navy-dark); font-size: 1rem; }
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 12px; }
.value { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 26px; }
.value i { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-tint); color: var(--accent-ink); font-size: 1.1rem; margin-bottom: 14px; }
.value h3 { font-size: 1.1rem; color: var(--navy-dark); margin-bottom: 8px; }
.value p { color: var(--muted); font-size: .95rem; }
.about-block { max-width: 780px; margin: 0 auto; }

/* ---- Contact ---- */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 48px; align-items: start; }
.contact-grid h2 { font-size: clamp(1.5rem, 3vw, 2rem); color: var(--navy-dark); margin-bottom: 14px; }
.contact-grid > div > p { color: var(--muted); margin-bottom: 24px; }
.contact-ways { list-style: none; display: grid; gap: 14px; }
.contact-ways a { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; color: var(--navy-dark); text-decoration: none; font-weight: 500; box-shadow: var(--shadow-sm); transition: transform .25s var(--ease), box-shadow .25s, border-color .25s; }
.contact-ways a:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--accent); }
.contact-ways i { width: 42px; height: 42px; flex: none; border-radius: 12px; display: grid; place-items: center; background: var(--accent-tint); color: var(--accent-ink); font-size: 1.1rem; }
.contact-ways small { display: block; color: var(--muted); font-weight: 400; }
.contact-plan { margin-top: 24px; padding: 18px 20px; border-radius: var(--radius); background: var(--light); color: var(--navy-dark); font-size: .95rem; }
.contact-plan a { color: var(--accent-ink); font-weight: 600; }
.contact-form-card { border: 1px solid var(--line); box-shadow: var(--shadow); }

/* ---- Service, industry and location pages ---- */
.lp-block { max-width: 860px; margin: 0 auto 48px; }
.lp-block h2 { font-size: clamp(1.5rem, 3vw, 2rem); line-height: 1.3; color: var(--navy-dark); margin-bottom: 16px; }
.lp-block p { color: #2d3740; font-size: 1.05rem; line-height: 1.8; margin-bottom: 14px; }
.lp-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.lp-grid-2 { grid-template-columns: repeat(2, 1fr); }
.lp-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 24px; display: flex; flex-direction: column; gap: 10px; transition: transform .3s var(--ease), box-shadow .3s; }
.lp-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.lp-card h3 { font-size: 1.1rem; color: var(--navy-dark); line-height: 1.35; }
.lp-card h3 a { color: inherit; text-decoration: none; }
.lp-card h3 a:hover { color: var(--accent-ink); }
.lp-card p { color: var(--muted); font-size: .95rem; margin: 0; }
.lp-card .tag { align-self: flex-start; font-size: .72rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-ink); background: var(--accent-tint); padding: 3px 12px; border-radius: var(--radius-pill); }
.lp-problem .voice { font-style: italic; color: var(--navy-dark); }
.lp-problem .change { color: var(--navy-dark); font-weight: 600; font-size: .95rem; }
.lp-problem ul { list-style: none; display: grid; gap: 8px; padding: 0; margin: 0; }
.lp-problem li { position: relative; padding-left: 24px; color: #2d3740; font-size: .95rem; }
.lp-problem li::before { content: "\f00c"; font-family: "Font Awesome 6 Free"; font-weight: 900; position: absolute; left: 0; top: .15em; font-size: .75rem; color: var(--accent-ink); }
.lp-section-title { font-size: clamp(1.5rem, 3vw, 2rem); color: var(--navy-dark); margin-bottom: 20px; text-align: center; }
.lp-section { margin-bottom: 56px; }

@media (max-width: 960px) {
  .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 36px; }
  .values { grid-template-columns: 1fr; }
  .lp-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .lp-grid, .lp-grid-2 { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .study-grid { grid-template-columns: 1fr; }
  .study-metrics .case-metrics, .study-metrics .case-metric strong { font-size: inherit; }
  .study-metrics .case-metric strong { font-size: 1.7rem; }
}
@media (max-width: 480px) {
  .case-metrics { grid-template-columns: 1fr; }
}
