/* Global sections injected on every landing page: portfolio grid (.gpf),
   trusted-by clients (.gcl), FAQ (.gfaq), and the portfolio detail page (.gpd).
   Self-contained and neutral so they sit cleanly on any template. */
.gpf,
.gcl,
.gfaq,
.gpd {
  --g-ink: #0f172a;
  --g-muted: #64748b;
  --g-line: #e8ecf3;
  --g-accent: #2f6bff;
  font-family: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  box-sizing: border-box;
}
.gpf *,
.gcl *,
.gpd * { box-sizing: border-box; }
.gpf-wrap,
.gcl-wrap,
.gpd-wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }

/* ---- Clients / trusted by ---- */
.gcl { padding: 40px 0; background: #fff; border-top: 1px solid var(--g-line); border-bottom: 1px solid var(--g-line); }
.gcl-label { text-align: center; color: var(--g-muted); font-size: 14px; margin: 0 0 22px; }
.gcl-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 40px; }
.gcl-row img { height: 34px; width: auto; filter: grayscale(1); opacity: 0.65; transition: opacity 0.2s, filter 0.2s; }
.gcl-row img:hover { filter: grayscale(0); opacity: 1; }

/* ---- Portfolio grid ---- */
.gpf { padding: 88px 0; background: #f7f9fc; color: var(--g-ink); }
.gpf-head { text-align: center; max-width: 640px; margin: 0 auto 48px; }
.gpf-kicker { display: inline-block; text-transform: uppercase; letter-spacing: 0.14em; font-size: 12px; font-weight: 700; color: var(--g-accent); margin-bottom: 12px; }
.gpf-head h2 { font-size: clamp(26px, 3.6vw, 40px); font-weight: 800; letter-spacing: -0.02em; margin: 0 0 10px; }
.gpf-head p { color: var(--g-muted); font-size: 17px; margin: 0; }
.gpf-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 0 0 36px; }
.gpf-tab { padding: 8px 18px; border-radius: 999px; border: 1px solid var(--g-line); background: #fff; color: var(--g-muted); font-size: 14px; font-weight: 600; text-decoration: none; transition: all 0.15s ease; }
.gpf-tab:hover { color: var(--g-ink); border-color: var(--g-accent); }
.gpf-tab.on { background: var(--g-accent); border-color: var(--g-accent); color: #fff; }
.gpf-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.gpf-card { display: block; background: #fff; border: 1px solid var(--g-line); border-radius: 16px; overflow: hidden; text-decoration: none; color: inherit; transition: transform 0.2s ease, box-shadow 0.2s ease; }
.gpf-card:hover { transform: translateY(-5px); box-shadow: 0 18px 40px rgba(15, 23, 42, 0.1); }
.gpf-thumb { aspect-ratio: 16/10; background: linear-gradient(135deg, #2f6bff, #39d0ff); overflow: hidden; }
.gpf-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gpf-body { padding: 20px 22px; }
.gpf-tag { font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 700; color: var(--g-accent); }
.gpf-body h3 { font-size: 18px; font-weight: 700; margin: 6px 0 6px; }
.gpf-body p { color: var(--g-muted); font-size: 14px; margin: 0 0 14px; }
.gpf-link { font-size: 14px; font-weight: 600; color: var(--g-accent); }
.gpf-all { text-align: center; margin-top: 40px; }
.gpf-all a { font-weight: 600; color: var(--g-accent); text-decoration: none; }

/* ---- FAQ ---- */
.gfaq { padding: 80px 0; background: #fff; }
.gfaq-wrap { max-width: 780px; margin: 0 auto; padding: 0 24px; }
.gfaq-title { text-align: center; font-size: clamp(24px, 3.4vw, 36px); font-weight: 800; letter-spacing: -0.02em; margin: 0 0 36px; color: var(--g-ink); }
.gfaq-list { display: flex; flex-direction: column; gap: 12px; }
.gfaq-item { border: 1px solid var(--g-line); border-radius: 14px; overflow: hidden; background: #fff; }
.gfaq-item summary { list-style: none; cursor: pointer; padding: 18px 22px; font-weight: 600; font-size: 16px; display: flex; justify-content: space-between; align-items: center; gap: 14px; color: var(--g-ink); }
.gfaq-item summary::-webkit-details-marker { display: none; }
.gfaq-pm { flex: none; width: 24px; height: 24px; border-radius: 7px; display: grid; place-items: center; background: color-mix(in srgb, var(--g-accent) 14%, transparent); color: var(--g-accent); font-weight: 800; transition: transform 0.25s; }
.gfaq-item[open] .gfaq-pm { transform: rotate(45deg); }
.gfaq-a { padding: 0 22px 20px; color: var(--g-muted); font-size: 15px; line-height: 1.7; }

/* ---- Portfolio detail page ---- */
.gpd { background: #fff; color: var(--g-ink); min-height: 100vh; }
.gpd-top { padding: 28px 0; border-bottom: 1px solid var(--g-line); }
.gpd-back { color: var(--g-muted); font-size: 14px; text-decoration: none; font-weight: 500; }
.gpd-back:hover { color: var(--g-ink); }
.gpd-hero { padding: 56px 0 36px; }
.gpd-cat { display: inline-block; text-transform: uppercase; letter-spacing: 0.12em; font-size: 12px; font-weight: 700; color: var(--g-accent); }
.gpd-hero h1 { font-size: clamp(30px, 5vw, 52px); font-weight: 800; letter-spacing: -0.02em; margin: 10px 0 16px; }
.gpd-hero .gpd-summary { color: var(--g-muted); font-size: 19px; max-width: 60ch; margin: 0; }
.gpd-meta { display: flex; flex-wrap: wrap; gap: 32px; margin: 28px 0 0; }
.gpd-meta div span { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--g-muted); }
.gpd-meta div b { font-size: 16px; font-weight: 700; }
.gpd-cover { margin: 8px 0 40px; }
.gpd-cover img { width: 100%; border-radius: 18px; border: 1px solid var(--g-line); }
.gpd-body { font-size: 17px; line-height: 1.8; color: #334155; max-width: 760px; margin: 0 auto; white-space: pre-line; }
.gpd-cta { margin: 36px auto 0; max-width: 760px; }
.gpd-btn { display: inline-flex; align-items: center; gap: 8px; background: var(--g-accent); color: #fff; font-weight: 700; padding: 13px 24px; border-radius: 10px; text-decoration: none; }
.gpd-gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin: 48px 0; }
.gpd-gallery img { width: 100%; border-radius: 14px; border: 1px solid var(--g-line); }
.gpd-foot { padding: 40px 0; border-top: 1px solid var(--g-line); color: var(--g-muted); font-size: 14px; }

@media (max-width: 900px) {
  .gpf-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .gpf-grid, .gpd-gallery { grid-template-columns: 1fr; }
}
