/* ============================================================
   HOI DIGITAL — pages.css
   Inner page styles: services, about, results, contact, blog
   All pages share these on top of global.css
   ============================================================ */

/* ══════════════════════════
   SHARED INNER PAGE ELEMENTS
══════════════════════════ */
.inner-section {
  /* Tight fluid padding — desktop section-to-section gap is now ~80px
     instead of the 240px we had at the start. */
  padding: clamp(24px, 3vw, 40px) var(--gut);
  max-width: 1200px;
  margin: 0 auto;
}
.inner-section-sm {
  padding: clamp(20px, 2.4vw, 32px) var(--gut);
  max-width: 1200px;
  margin: 0 auto;
}
.section-head { margin-bottom: 56px; }
.section-head h2 {
  font-family: 'Cabinet Grotesk', sans-serif;
  font-weight: 900;
  font-size: clamp(32px, 3.5vw, 48px);
  letter-spacing: -2px;
  line-height: 1.1;
  color: var(--ink);
}
.section-head h2 em { font-style: italic; color: var(--or); font-weight: 300; }
.section-head h2 .gw { color: var(--gr); }
.section-head p { font-size: 17px; color: var(--muted); margin-top: 14px; max-width: 600px; }
.section-head.center { text-align: center; }
.section-head.center p { margin-left: auto; margin-right: auto; }

/* ── STAT CARDS (used on multiple pages) ── */
.stats-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin: 0; }
.stat-card {
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: var(--rad);
  padding: 28px;
  text-align: center;
  transition: box-shadow .2s, transform .2s;
}
.stat-card:hover { box-shadow: 0 8px 32px rgba(0,0,0,.07); transform: translateY(-2px); }
.stat-card::after {
  content: '';
  display: block;
  height: 3px;
  border-radius: 0 0 var(--rad) var(--rad);
  margin: 18px -28px -28px;
  background: var(--grad-gr);
  opacity: 0;
  transition: opacity .3s;
}
.stat-card:hover::after { opacity: 1; }
.stat-num { font-family: 'Cabinet Grotesk', sans-serif; font-weight: 900; font-size: 40px; letter-spacing: -2px; line-height: 1; display: block; }
.stat-num.orange { color: var(--or); }
.stat-num.green  { color: var(--gr); }
.stat-label { font-size: 13px; color: var(--muted); margin-top: 6px; display: block; }

/* ══════════════════════════
   SERVICES PAGE
══════════════════════════ */

/* Service nav tabs */
.service-tabs {
  display: flex;
  gap: 12px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}
.service-tab {
  padding: 10px 20px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  border: 1.5px solid var(--rule);
  color: var(--muted);
  cursor: pointer;
  transition: all .2s;
  background: var(--white);
  text-decoration: none;
}
.service-tab:hover, .service-tab.active {
  border-color: var(--gr);
  color: var(--gr);
  background: var(--gr-lt);
}

/* Full service cards (individual service pages) */
.service-full-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.service-full-card {
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: 20px;
  padding: 36px 32px;
  transition: all .25s;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}
.service-full-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--grad-gr);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s ease;
}
.service-full-card:hover::after { transform: scaleX(1); }
.service-full-card:hover { box-shadow: 0 12px 40px rgba(0,0,0,.08); transform: translateY(-3px); }
.sfc-icon { font-size: 32px; margin-bottom: 16px; }
.sfc-num  { font-family: 'Cabinet Grotesk', sans-serif; font-size: 12px; color: #C2BAB0; font-weight: 700; margin-bottom: 10px; }
.service-full-card h3 { font-family: 'Cabinet Grotesk', sans-serif; font-size: 22px; font-weight: 700; margin-bottom: 10px; letter-spacing: -.3px; color: var(--ink); }
.service-full-card > p { font-size: 14px; color: var(--muted); line-height: 1.7; margin-bottom: 16px; }
.service-features { list-style: none; }
.service-features li {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  color: var(--ink2);
  padding: 6px 0;
  border-bottom: 1px solid rgba(0,0,0,.04);
}
.service-features li:last-child { border-bottom: none; }
.service-features li::before { content: '✓'; color: var(--gr); font-weight: 700; flex-shrink: 0; }
.sfc-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 20px;
  font-size: 13px;
  font-weight: 700;
  color: var(--gr);
  transition: gap .2s;
}
.sfc-link:hover { gap: 10px; }

/* Digital Marketing sub-categories */
.service-category {
  margin-bottom: 72px;
}
.service-category-head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 32px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--rule);
}
.service-category-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: var(--gr-lt);
  border: 1px solid rgba(28,102,65,.2);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; flex-shrink: 0;
}
.service-category-head h3 { font-family: 'Cabinet Grotesk', sans-serif; font-weight: 700; font-size: 26px; letter-spacing: -.5px; color: var(--ink); }
.service-category-head p { font-size: 14px; color: var(--muted); margin-top: 3px; }

/* Process steps */
.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 3px;
  background: var(--rule);
  border: 1px solid var(--rule);
  border-radius: 20px;
  overflow: hidden;
  margin: 0;
}
.process-step {
  background: var(--white);
  padding: 32px 28px;
  transition: background .2s;
}
.process-step:hover { background: var(--canvas); }
.process-step-num {
  font-family: 'Cabinet Grotesk', sans-serif;
  font-weight: 900;
  font-size: 40px;
  letter-spacing: -2px;
  color: rgba(28,102,65,.12);
  line-height: 1;
  margin-bottom: 14px;
}
.process-step h4 { font-family: 'Cabinet Grotesk', sans-serif; font-size: 17px; font-weight: 700; margin-bottom: 8px; color: var(--ink); }
.process-step p { font-size: 13px; color: var(--muted); line-height: 1.65; margin: 0; }

/* ══════════════════════════
   ABOUT PAGE
══════════════════════════ */
.about-story {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  margin-bottom: 80px;
}
.about-story-text h2 {
  font-family: 'Cabinet Grotesk', sans-serif;
  font-weight: 900;
  font-size: clamp(32px, 3.5vw, 48px);
  letter-spacing: -2px;
  line-height: 1.1;
  color: var(--ink);
  margin-bottom: 20px;
}
.about-story-text h2 em { font-style: italic; color: var(--or); font-weight: 300; }
.about-story-text p { font-size: 16px; color: var(--muted); line-height: 1.8; margin-bottom: 16px; }
.about-story-text p:last-child { margin-bottom: 0; }
.about-story-text strong { color: var(--ink); font-weight: 600; }
.about-visual {
  background: var(--ink);
  border-radius: 20px;
  padding: 48px 40px;
  position: relative;
  overflow: hidden;
}
.about-visual::before {
  content: 'HOI';
  position: absolute;
  right: -20px; top: 50%;
  transform: translateY(-50%);
  font-family: 'Cabinet Grotesk', sans-serif;
  font-weight: 900;
  font-size: 160px;
  letter-spacing: -8px;
  color: rgba(255,255,255,.03);
  pointer-events: none;
  user-select: none;
}
.about-visual-tag { font-size: 11px; text-transform: uppercase; letter-spacing: .2em; color: var(--gr2); font-weight: 700; margin-bottom: 20px; display: block; }
.about-visual h3 { font-family: 'Cabinet Grotesk', sans-serif; font-weight: 900; font-size: 28px; color: #fff; letter-spacing: -.5px; margin-bottom: 20px; }
.about-values { display: flex; flex-direction: column; gap: 14px; }
.about-value { display: flex; gap: 14px; align-items: flex-start; }
.av-icon { width: 36px; height: 36px; border-radius: 10px; background: rgba(28,102,65,.2); border: 1px solid rgba(28,102,65,.3); display: flex; align-items: center; justify-content: center; font-size: 16px; flex-shrink: 0; }
.av-title { font-weight: 700; font-size: 14px; color: #fff; display: block; margin-bottom: 2px; }
.av-desc  { font-size: 13px; color: rgba(255,255,255,.45); line-height: 1.55; }

/* Team grid */
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 0; }
.team-card {
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: 16px;
  padding: 28px 24px;
  text-align: center;
  transition: all .25s;
}
.team-card:hover { box-shadow: 0 8px 32px rgba(0,0,0,.07); transform: translateY(-3px); }
.team-avatar {
  width: 72px; height: 72px;
  border-radius: 50%;
  margin: 0 auto 16px;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Cabinet Grotesk', sans-serif;
  font-weight: 900;
  font-size: 24px;
  color: #fff;
  /* Hard safety so long avatar text (e.g. "Dev Team") never breaks the circle */
  overflow: hidden;
  text-transform: uppercase;
  letter-spacing: .5px;
  line-height: 1;
  padding: 0 4px;
  box-sizing: border-box;
}
.team-name  { font-family: 'Cabinet Grotesk', sans-serif; font-weight: 700; font-size: 18px; color: var(--ink); margin-bottom: 4px; }
.team-role  { font-size: 13px; color: var(--muted); }
.team-disc  { display: inline-block; margin-top: 12px; padding: 3px 10px; border-radius: 20px; font-size: 11px; font-weight: 700; }
.td-D { background: rgba(217,78,26,.1);  color: var(--or); }
.td-I { background: rgba(245,166,35,.1); color: #B8860B; }
.td-S { background: var(--gr-lt);        color: var(--gr); }
.td-C { background: rgba(28,93,168,.1);  color: #1C5DA8; }

/* Mission / values strip */
.values-strip {
  background: var(--ink);
  border-radius: 20px;
  padding: 56px 52px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin: 0;
  position: relative;
  overflow: hidden;
}
.values-strip.values-strip--4col { grid-template-columns: repeat(4, 1fr); }
.values-strip.values-strip--3col { grid-template-columns: repeat(3, 1fr); }
.values-strip::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 20% 50%, rgba(28,102,65,.15) 0%, transparent 60%);
}
.value-item { position: relative; z-index: 1; }
.value-num { font-family: 'Cabinet Grotesk', sans-serif; font-weight: 900; font-size: 48px; letter-spacing: -2px; color: rgba(255,255,255,.06); line-height: 1; margin-bottom: 10px; }
.value-item h4 { font-family: 'Cabinet Grotesk', sans-serif; font-weight: 700; font-size: 20px; color: #fff; margin-bottom: 8px; }
.value-item p { font-size: 14px; color: rgba(255,255,255,.45); line-height: 1.7; margin: 0; }

/* ══════════════════════════
   RESULTS / CASE STUDIES PAGE
══════════════════════════ */
.cases-filter { display: flex; gap: 10px; margin-bottom: 40px; flex-wrap: wrap; }
.filter-btn {
  padding: 8px 18px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  border: 1.5px solid var(--rule);
  color: var(--muted);
  background: var(--white);
  cursor: pointer;
  transition: all .2s;
}
.filter-btn:hover, .filter-btn.active { border-color: var(--gr); color: var(--gr); background: var(--gr-lt); }

.cases-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.case-card {
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: 20px;
  padding: 44px;
  position: relative;
  overflow: hidden;
  transition: all .25s;
  cursor: pointer;
}
.case-card:hover { transform: translateY(-5px); box-shadow: 0 20px 60px rgba(0,0,0,.1); border-color: rgba(28,102,65,.2); }
.case-card::after { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px; }
.case-card.c1::after { background: linear-gradient(90deg, var(--or), var(--or2)); }
.case-card.c2::after { background: linear-gradient(90deg, var(--gr), var(--gr2)); }
.case-card.c3::after { background: linear-gradient(90deg, #1C5DA8, var(--gr)); }
.case-card.c4::after { background: linear-gradient(90deg, var(--or), #F7C462); }
.case-industry { font-size: 11px; text-transform: uppercase; letter-spacing: .15em; color: var(--muted); font-weight: 600; margin-bottom: 10px; }
.case-card h3 { font-family: 'Cabinet Grotesk', sans-serif; font-weight: 700; font-size: 20px; letter-spacing: -.2px; margin-bottom: 24px; line-height: 1.3; color: var(--ink); }
.case-metrics { display: flex; gap: 32px; margin-bottom: 24px; }
.case-metric-val { font-family: 'Cabinet Grotesk', sans-serif; font-weight: 900; font-size: 40px; letter-spacing: -2px; line-height: 1; display: block; }
.case-metric-val.orange { color: var(--or); }
.case-metric-val.green  { color: var(--gr); }
.case-metric-lbl { font-size: 12px; color: var(--muted); display: block; margin-top: 4px; }
.case-quote { font-size: 13px; color: var(--ink2); font-style: italic; border-left: 2px solid var(--rule); padding-left: 14px; line-height: 1.65; }

/* ══════════════════════════
   CONTACT PAGE
══════════════════════════ */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
  align-items: start;
}
.contact-info h2 {
  font-family: 'Cabinet Grotesk', sans-serif;
  font-weight: 900;
  font-size: clamp(30px, 3.5vw, 46px);
  letter-spacing: -2px;
  line-height: 1.1;
  color: var(--ink);
  margin-bottom: 16px;
}
.contact-info h2 em { font-style: italic; color: var(--or); font-weight: 300; }
.contact-info > p { font-size: 15px; color: var(--muted); margin-bottom: 24px; line-height: 1.65; }

/* Contact methods — denser 2-column grid (was a tall single column) */
.contact-methods {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
@media (max-width: 520px) { .contact-methods { grid-template-columns: 1fr; } }
.contact-method {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: 10px;
  transition: all .2s;
  text-decoration: none;
  min-width: 0;
}
.contact-method:hover { border-color: var(--gr); background: var(--gr-lt); transform: translateY(-1px); }
.cm-icon { width: 34px; height: 34px; border-radius: 8px; background: var(--canvas); border: 1px solid var(--rule); display: flex; align-items: center; justify-content: center; font-size: 15px; flex-shrink: 0; transition: background .2s; color: var(--ink2); }
.cm-icon svg { width: 16px; height: 16px; display: block; color: inherit; }
.contact-method:hover .cm-icon { background: var(--white); }
.cm-label { font-size: 10px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 600; display: block; }
.cm-value {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  display: block;
  margin-top: 1px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Office cards — compact white panels with uppercase tracked header.
   Stacked vertically (India on top, Australia below). */
.offices-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-top: 8px;
}
.office-card {
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: 12px;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
}
.office-card-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 10px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--rule);
}
.office-card-flag { font-size: 18px; line-height: 1; flex-shrink: 0; }
.office-card-label {
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--muted);
}
.office-card-body {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.office-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 12.5px;
  color: var(--ink2);
  line-height: 1.5;
}
.office-row--address { color: var(--ink); font-weight: 500; }
.office-row-icon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  display: inline-block;
  vertical-align: middle;
  color: var(--muted);
  opacity: .85;
  margin-top: 2px;
}
.office-row a,
.office-row a:link,
.office-row a:visited {
  color: var(--ink2);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color .15s, border-color .15s;
}
.office-row a:hover {
  color: var(--or);
  border-bottom-color: var(--or);
}

/* Compact "What happens next" card */
.next-steps-card {
  margin-top: 20px;
  padding: 16px 18px;
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: 12px;
}
.next-steps-head {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 10px;
}
.next-steps-list { display: flex; flex-direction: column; gap: 7px; }
.next-step {
  display: flex;
  gap: 8px;
  font-size: 13px;
  color: var(--ink2);
  line-height: 1.5;
}
.next-step-tick {
  color: var(--gr);
  font-weight: 700;
  flex-shrink: 0;
}

/* Required-field star marker */
.req { color: var(--or, #D94E1A); font-weight: 700; margin-left: 2px; }

/* Contact form */
.contact-form {
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: 20px;
  padding: 44px;
}
.form-row { margin-bottom: 20px; }
.form-row.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
label { display: block; font-size: 13px; font-weight: 600; color: var(--ink2); margin-bottom: 7px; }
input[type=text],
input[type=email],
input[type=tel],
select,
textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid var(--rule);
  border-radius: 8px;
  font-family: 'Cabinet Grotesk', sans-serif;
  font-size: 15px;
  color: var(--ink);
  background: var(--canvas);
  transition: border-color .2s, background .2s;
  outline: none;
  appearance: none;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--gr);
  background: var(--white);
}
textarea { resize: vertical; min-height: 130px; }
select { cursor: pointer; }
.form-submit {
  width: 100%;
  padding: 16px;
  background: var(--grad-or);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-family: 'Cabinet Grotesk', sans-serif;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .02em;
  cursor: pointer;
  transition: all .2s;
  box-shadow: 0 4px 16px rgba(217,78,26,.3);
}
.form-submit:hover { box-shadow: 0 8px 28px rgba(217,78,26,.45); transform: translateY(-2px); }
.form-note { font-size: 12px; color: var(--muted); text-align: center; margin-top: 14px; }

/* Booking option */
.booking-box {
  background: var(--ink);
  border-radius: 16px;
  padding: 32px;
  margin-top: 24px;
  display: flex;
  align-items: center;
  gap: 20px;
}
.booking-box-text h4 { font-family: 'Cabinet Grotesk', sans-serif; font-weight: 700; font-size: 18px; color: #fff; margin-bottom: 4px; }
.booking-box-text p  { font-size: 13px; color: rgba(255,255,255,.45); margin: 0; }
.booking-box a { flex-shrink: 0; background: var(--or); color: #fff; padding: 12px 22px; border-radius: 8px; font-weight: 700; font-size: 14px; transition: background .2s; white-space: nowrap; }
.booking-box a:hover { background: var(--gr); }

/* ══════════════════════════
   BLOG PAGE
══════════════════════════ */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.blog-card {
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: 16px;
  overflow: hidden;
  transition: all .25s;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  display: block;
}
.blog-card:hover { transform: translateY(-4px); box-shadow: 0 16px 48px rgba(0,0,0,.09); }
.blog-thumb {
  height: 200px;
  background: var(--ink);
  position: relative;
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.blog-thumb-text {
  font-family: 'Cabinet Grotesk', sans-serif;
  font-weight: 900;
  font-size: 64px;
  color: rgba(255,255,255,.06);
  letter-spacing: -3px;
}
.blog-thumb-badge {
  position: absolute;
  top: 16px; left: 16px;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
}
.blog-thumb-glow {
  position: absolute;
  width: 200px; height: 200px;
  border-radius: 50%;
  filter: blur(40px);
}
.blog-body { padding: 28px; }
.blog-meta { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.blog-cat   { font-size: 11px; text-transform: uppercase; letter-spacing: .1em; font-weight: 700; color: var(--or); }
.blog-date  { font-size: 12px; color: var(--muted); }
.blog-card h3 { font-family: 'Cabinet Grotesk', sans-serif; font-weight: 700; font-size: 19px; letter-spacing: -.2px; line-height: 1.3; margin-bottom: 10px; color: var(--ink); }
.blog-card p  { font-size: 14px; color: var(--muted); line-height: 1.65; margin: 0; }
.blog-read-more { display: flex; align-items: center; gap: 6px; margin-top: 18px; font-size: 13px; font-weight: 700; color: var(--gr); transition: gap .2s; }
.blog-card:hover .blog-read-more { gap: 10px; }

/* Blog featured post */
.blog-featured {
  background: var(--ink);
  border-radius: 20px;
  padding: 56px;
  margin-bottom: 56px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.blog-featured::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 80% 50%, rgba(28,102,65,.2) 0%, transparent 60%);
}
.blog-featured-content { position: relative; z-index: 1; }
.blog-featured-badge { display: inline-block; background: var(--or); color: #fff; padding: 4px 12px; border-radius: 20px; font-size: 11px; font-weight: 700; margin-bottom: 16px; }
.blog-featured-content h2 { font-family: 'Cabinet Grotesk', sans-serif; font-weight: 900; font-size: 32px; letter-spacing: -1px; line-height: 1.2; color: #fff; margin-bottom: 14px; }
.blog-featured-content p { font-size: 15px; color: rgba(255,255,255,.5); line-height: 1.7; margin-bottom: 24px; }
.blog-featured-meta { font-size: 12px; color: rgba(255,255,255,.3); margin-top: 16px; }
.blog-featured-visual { position: relative; z-index: 1; }
.blog-stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.blog-stat {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 12px;
  padding: 20px;
}
.blog-stat-num { font-family: 'Cabinet Grotesk', sans-serif; font-weight: 900; font-size: 30px; letter-spacing: -1.5px; color: var(--gr2); display: block; line-height: 1; }
.blog-stat-lbl { font-size: 12px; color: rgba(255,255,255,.4); display: block; margin-top: 4px; }

/* Button inside blog-featured sits on a dark background — override colours */
.blog-featured .btn-outline {
  border-color: rgba(255,255,255,.18);
  color: #fff;
}
.blog-featured .btn-outline:hover {
  border-color: var(--gr2);
  color: var(--gr2);
  background: rgba(255,255,255,.04);
}

/* Newsletter strip */
.newsletter {
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: 16px;
  padding: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  margin-top: 64px;
}
.newsletter h3 { font-family: 'Cabinet Grotesk', sans-serif; font-weight: 700; font-size: 22px; letter-spacing: -.3px; color: var(--ink); margin-bottom: 4px; }
.newsletter p  { font-size: 14px; color: var(--muted); margin: 0; }
.newsletter-form { display: flex; gap: 10px; flex-shrink: 0; }
.newsletter-form input { padding: 12px 18px; border: 1.5px solid var(--rule); border-radius: 8px; font-family: 'Cabinet Grotesk', sans-serif; font-size: 14px; outline: none; width: 260px; transition: border-color .2s; }
.newsletter-form input:focus { border-color: var(--gr); }
.newsletter-form button { padding: 12px 24px; background: var(--or); color: #fff; border: none; border-radius: 8px; font-family: 'Cabinet Grotesk', sans-serif; font-weight: 700; font-size: 14px; cursor: pointer; transition: background .2s; white-space: nowrap; }
.newsletter-form button:hover { background: var(--gr); }

/* ── PAGES RESPONSIVE ── */
@media (max-width: 1024px) {
  .stats-row         { grid-template-columns: 1fr 1fr; }
  .team-grid         { grid-template-columns: 1fr 1fr; }
  .process-steps     { grid-template-columns: 1fr 1fr; }
  .service-full-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .contact-layout   { grid-template-columns: 1fr; gap: 48px; }
  .about-story      { grid-template-columns: 1fr; gap: 40px; }
  .cases-grid       { grid-template-columns: 1fr; }
  .blog-grid        { grid-template-columns: 1fr 1fr; }
  .blog-featured    {
    grid-template-columns: 1fr;
    padding: 32px 26px;          /* was 56px — too cramped on tablet/mobile */
    gap: 28px;
    margin-bottom: 40px;
  }
  .blog-featured-content h2 { font-size: 24px; line-height: 1.25; }
  .blog-featured-content p  { font-size: 14px; margin-bottom: 18px; }
  .values-strip,
  .values-strip.values-strip--4col,
  .values-strip.values-strip--3col {
    grid-template-columns: 1fr 1fr;   /* tablet: 2 columns regardless of variant */
    padding: 36px 30px;
    gap: 28px;
    margin: 0;
  }
  .newsletter       { flex-direction: column; align-items: flex-start; }
  .newsletter-form  { width: 100%; }
  .newsletter-form input { flex: 1; width: auto; }
}
@media (max-width: 600px) {
  .blog-featured            { padding: 24px 20px; border-radius: 16px; }
  .blog-featured-content h2 { font-size: 21px; letter-spacing: -.5px; }
  .blog-featured-content p  { font-size: 13.5px; }
  .blog-stats-grid          { gap: 10px; }
  .blog-stat                { padding: 14px 12px; }
  .blog-stat-num            { font-size: 24px; }
  .blog-stat-lbl            { font-size: 11px; }
  .blog-featured .btn-outline { padding: 11px 22px; font-size: 13px; }

  /* Newsletter form — stack vertically so Subscribe button doesn't overflow */
  .newsletter { padding: 28px 22px; gap: 18px; }
  .newsletter h3 { font-size: 19px; }
  .newsletter-form { flex-direction: column; gap: 10px; }
  .newsletter-form input,
  .newsletter-form button { width: 100%; box-sizing: border-box; }
  .newsletter-form input { min-width: 0; }

  /* Case card metrics — second metric was getting clipped on narrow screens */
  .case-card           { padding: 26px 22px; }
  .case-card h3        { font-size: 17px; margin-bottom: 18px; }
  .case-metrics        { gap: 18px; flex-wrap: wrap; margin-bottom: 18px; }
  .case-metrics > div  { min-width: 0; flex: 1 1 calc(50% - 18px); }
  .case-metric-val     { font-size: 28px; letter-spacing: -1px; }
  .case-metric-lbl     { font-size: 11px; }
  .case-quote          { font-size: 12.5px; }
}
@media (max-width: 380px) {
  /* On very narrow phones, stack the two metrics so each gets full width */
  .case-metrics       { flex-direction: column; gap: 14px; }
  .case-metrics > div { flex: 1 1 100%; }
  .case-metric-val    { font-size: 32px; }
}

/* Values strip — phones: single column with tight padding */
@media (max-width: 600px) {
  /* Mobile inner-section padding — tight, intentional minimum
     (overrides the clamp on the base rule). */
  .inner-section { padding: 16px var(--gut); }

  .values-strip,
  .values-strip.values-strip--4col,
  .values-strip.values-strip--3col {
    grid-template-columns: 1fr;
    padding: 28px 22px;
    gap: 24px;
    margin: 0;
    border-radius: 16px;
  }
  .value-num { font-size: 36px; margin-bottom: 6px; }
  .value-item h4 { font-size: 17px; }
  .value-item p { font-size: 13px; line-height: 1.55; }

  /* Cases filter — switch to a tidy 2-column grid on phones so the 4 filters
     sit as a clean 2x2 block instead of wrapping unevenly. */
  .cases-filter {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 28px;
  }
  .filter-btn {
    width: 100%;
    padding: 12px 16px;
    text-align: center;
    font-size: 13px;
    border-radius: 10px;
  }

  /* Tighten inner-section heading spacing on phones for consistent rhythm */
  .section-head { margin-bottom: 32px; }
  .section-head h2 { font-size: clamp(26px, 7vw, 34px); letter-spacing: -1px; }
  .section-head p  { font-size: 14px; margin-top: 10px; }
  .inner-section-sm { padding: 16px var(--gut); }
}
@media (max-width: 600px) {
  .blog-grid          { grid-template-columns: 1fr; }
  .team-grid          { grid-template-columns: 1fr; gap: 12px; margin-top: 0; }
  /* Team cards on phones: 2-column grid — avatar on the left spans all rows,
     name/role/disc stack vertically in the right column. */
  .team-card {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto auto;
    column-gap: 14px;
    row-gap: 2px;
    align-items: center;
    text-align: left;
    padding: 14px 16px;
    min-width: 0;
  }
  .team-avatar {
    grid-column: 1;
    grid-row: 1 / span 3;
    width: 52px; height: 52px;
    font-size: 17px;
    margin: 0;
  }
  .team-name    { grid-column: 2; grid-row: 1; font-size: 15px; line-height: 1.25; margin: 0; }
  .team-role    { grid-column: 2; grid-row: 2; font-size: 12px; line-height: 1.35; }
  .team-disc    { grid-column: 2; grid-row: 3; justify-self: start; margin-top: 4px; font-size: 10px; padding: 2px 8px; }

  .service-full-grid  { grid-template-columns: 1fr; }
  .process-steps      { grid-template-columns: 1fr; }
  .stats-row          { grid-template-columns: 1fr 1fr; }
  .form-row.two-col   { grid-template-columns: 1fr; }
  .contact-form       { padding: 28px; }
}
